Model raw Google Ads Data and build visualisation
📊 Outcome: Visualized Google Ads Spend
🕑 Estimated Time: ~20min
Create a model
- Add raw data and rename columns
- Change data field type
- Normalize data
- Create an output table and commit your model
- Visualize your data
Create a model
- Click on the Model icon to navigate to the Modeling workspace
- Create a new model by clicking on Add...
- Select UI Model and give your model a name (e.g. "Peter's first Google Ads model)
🎉🥳 You've created a model! Now you cans tart model data!
Add raw data and rename columns
- To start modeling data you would need to first add data to the model. You can do this by clicking on the INPUT node and drag it into the modeling canvas.
- Click on the INPUT node and select the table ad_group_ad_report if you are using your own Google Ads data OR select the table "Beginner's Journey Google Ads Data" if you are using the preloaded data.
- Add a FIELDS node to drop and rename columns. We will now change the name of the cost column to spend and the day column to date.
Change data field type
- If you are looking at the column date, you see that it is formatted as a text/string column. In order to transform this column into a date column we will need to use the DATE PARSER node. Add the DATE PARSER to the canvas and connect the node to the prior added FIELDS node.
- Now set the DATE PARSER node as followed in order to "parse out the date":
Normalize "Spend" column and create an output table
- Now let's have a look on the spend column. You will notice that it's a quite high value. ℹ️ Google Ads is displaying spend & revenue values in one-millionth USD, therefore we have to divide it by 1,000,000 to normalize it to one USD. In Y42 we can do this with the FUNCTIONS node. As done before with the FIELDS & DATE PARSER node, please also add the FUNCTIONS node to your model.
- Now divide the column spend by 1.000.000 just by typing in following function into the editor:
You have done basic steps to normalize your Google Ads data. You can save the model now by adding an OUTPUT node and committing the model. Just drag an OUTPUT node to the canvas, give your output table the name "Daily Ad spend", select all columns you want to have in your table and commit your model afterwards.
🎉🥳 You've now created your first table with a model!
Visualize your normalized Google Ads data
Now you can start to visualize your data.
- Navigate to the Visualisation workspace by clicking on the Visualisation icon and create a new dashboard.
- Add a widget and select the "Daily Ad spend" table as an input
- Drag and drop the columns into the fields:
- Breakdown by: Date of date
- Summarize by: Sum of spend
Was this article helpful?