diff --git a/models/facebook_ads__ad_adapter.sql b/models/facebook_ads__ad_adapter.sql deleted file mode 100644 index 8a38127..0000000 --- a/models/facebook_ads__ad_adapter.sql +++ /dev/null @@ -1,30 +0,0 @@ -/* - -base url -url host -url path -utm source -utm meidum -utm campaign -utm content -utm term -*/ - -with ads as ( - select - created_at_date as date_day, - account_id, - account_name, - campaign_id, - campaign_name, - adset_id, - adset_name, - ad_id, - ad_name, - impressions, - clicks, - spend - from {{ ref('stg_facebook_ads_ads') }} -) - -select * from ads \ No newline at end of file diff --git a/models/facebook_ads__ad_set_report.sql b/models/facebook_ads__ad_set_report.sql index 24d077d..a0fc6d5 100644 --- a/models/facebook_ads__ad_set_report.sql +++ b/models/facebook_ads__ad_set_report.sql @@ -1,16 +1,3 @@ -/* -date_day, -account_id, -account_name, -campaign_id, -campaign_name, -adset_id, -adset_name, -clicks, -impressions, -spend -*/ - with ads as ( select ad_id, diff --git a/models/facebook_ads__campaign_report.sql b/models/facebook_ads__campaign_report.sql index 4ed64da..3024c73 100644 --- a/models/facebook_ads__campaign_report.sql +++ b/models/facebook_ads__campaign_report.sql @@ -1,14 +1,3 @@ -/* -date_day, -account_id, -account_name, -campaign_id, -campaign_name, -clicks, -impressions, -spend -*/ - with campaigns as ( select campaign_id, diff --git a/models/schema.yml b/models/schema.yml index 42271fa..907db34 100644 --- a/models/schema.yml +++ b/models/schema.yml @@ -12,51 +12,6 @@ sources: - name: campaigns models: - - name: facebook_ads__ad_adapter - description: > - This model is used to show the utm parameters on a ad, adset and campaign level. - columns: - - name: date_day - description: The date of the ad, adset or campaign. - tests: - - not_null - - name: account_id - description: The unique id of the account. - tests: - - not_null - - name: account_name - description: The name of the account. - tests: - - not_null - - name: campaign_id - description: The unique id of the campaign. - tests: - - not_null - - name: campaign_name - description: The name of the campaign. - tests: - - not_null - - name: adset_id - description: The unique id of the adset. - - name: adset_name - description: The name of the adset. - tests: - - not_null - - name: ad_id - description: The unique id of the ad. - tests: - - not_null - - name: ad_name - description: The name of the ad. - tests: - - not_null - - name: impressions - description: The number of times the ad/adset/campaign was shown. - - name: clicks - description: The number of clicks the ad/adset/campaign received. - - name: spend - description: The amount of money spent on the ad/adset/campaign. - - name: facebook_ads__ad_set_report description: > This model shows the number of impressions, clicks and spend for each adset.