Git Product home page Git Product logo

googleads-dbt's Introduction

Google Ads models

dbt data models for Google Ads data (exported to BigQuery via Google Data Transfer) transformation.

Models

The primary outputs of this page are: adGroupData, campaignData, textAds, creativeUrl. There are several intermediate models used to create these two models.

Model Description
adGroupData Google Ads ad group data with base metrics (clicks, impressions, cost, cpc...)
campaignData Google Ads campaign data with base metrics (clicks, impressions, cost, cpc...)
creativeUrl Base metrics on the creative level with final url
textAds Text ads without statistics

Installation instructions

https://docs.getdbt.com/docs/installation

Configuration instructions

These variables in dbt_project.yml are needed to configure the models:

Var Description Required
t_campaignStats Full name of p_campaignStats table from Google Ads data export (dataset id included)
t_campaign Full name of p_Campaign table from Google Ads data export (dataset id included)
t_ads Full name of p_Ad table from Google Ads data export (dataset id included)
t_adStats Full name of p_AdBasicStats table from Google Ads data export (dataset id included)
t_campaignConv Full name of p_CampaignConversionStats table from Google Ads data export (dataset id included)
t_adGroupStats Full name of p_AdGroupStats table from Google Ads data export (dataset id included)
t_adGroup Full name of p_AdGroup table from Google Ads data export (dataset id included)
t_adGroupConv Full name of p_AdGroupConv table from Google Ads data export (dataset id included)
convName1 Name of first conversion defined in Google Ads
convName2 Name of second conversion defined in Google Ads
convName3 Name of third conversion defined in Google Ads

Example dbt_project.yml configuration:

models:
        gadslh:
                production: 
                        materialized: table
                staging:
                        materialized: ephemeral
        vars: 
                t_campaignStats: '`datasetID_google_ads.p_CampaignStats_accountNumber`'
                t_campaign: '`datasetID_google_ads.p_Campaign_accountNumber`'
                t_ads: '`datasetID_google_ads.p_Ad_accountNumber`'
                t_adStats: '`datasetID_google_ads.p_AdBasicStats_accountNumber`'
                t_campaignConv: '`datasetID_google_ads.p_CampaignConversionStats_accountNumber`'
                t_adGroupStats: '`datasetID_google_ads.p_AdGroupStats_accountNumber`'
                t_adGroup: '`datasetID_google_ads.p_AdGroup_accountNumber`'
                t_adGroupConv: '`datasetID_google_ads.p_AdGroup_accountNumber`'
                convName1: '"name of first conversion"'
                convName2: '"name of second conversion"'
                convName3: '"name of third conversion"'
  

googleads-dbt's People

Contributors

patbuczynski avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.