ROAS calculator using Google Ads API

Return on Ad Spend is a KPI that tells you whether your campaigns are delivering real business value. The problem is that because your data typically is stuck in various ad platforms–calculating ROAS is a time-consuming, manual task. Most marketing teams look at ROAS quarterly or monthly. However, the faster you can swap out an ineffective campaign or double down on a high-performing campaign, the faster you can improve the effectiveness of a given marketing channel. This can be instrumental to building out new ad channels, or even trying more types of experiments to give your product an edge in the market. Step by Step: 1. Before you start you need: From your Google Ads Account: Login Customer ID + Developer Token From your Google Cloud Console Project: OAuth Client ID + Client Secret Visiting https://developers.google.com/oauthplayground/ to generate a temporary access Token. 2. Fetching data from Google Adwords API: using the POST Request node. Below the configuration: - Connection URL with your Customer ID inside: https://googleads.googleapis.com/v10/customers/${CUSTOMER_ID}/googleAds:searchStream - Body request: Google Ads Query to obtain your desire data. - Request Headers: Developer token, Login-customer-id (aka Google ads Manager Account ID, and an Authorization token. 3. Obtaining Company Revenues by GAds campaigns using an Excel Reader node 4. Joining and Calculating ROAS: Joiner node + Math formula node. Math node formula to calculate ROAS: round(($revenues_last_30days$/$cost$)*100,0) 5. Output: you can choose the output that you prefer: Excel file, Tableau source, DB or Gsheets between many others.


This is a companion discussion topic for the original entry at https://kni.me/w/HeV7JaF9ND9rRFu-

Thank you for the great use case and workflow.
Somehow i’m not able to authentificate with the POST Request, despite having filled out all necessary information. The Post results return a 401 status.
Would appreciate any hint. Thanks

Hey @besarks :wave:t2: , welcome to the KNIME community! :tada:
First of all thanks for your comment and interest in the workflow.

Below find a gif :film_projector: where you can visualize how to configure the POST Request node:

So you need to provide into the POST Request node:

  • Connection URL with your Customer ID inside

  • As Body request the Google Ads Query to obtain your desired data, in the example:

If you don’t know how to compose those queries don’t worry there is a Query Builder available that helps you to obtain what you need.

Request Headers: Developer token, Login-customer-id (aka Google ads Manager Account ID, and an Authorization token.

Hope it would be useful somehow,

BR :raised_hands:t2: