<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sasireka Balasubramaniyam</title>
    <description>The latest articles on DEV Community by Sasireka Balasubramaniyam (@sasireka_40).</description>
    <link>https://dev.to/sasireka_40</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3917949%2F0d322124-a2a4-444d-943c-dd815a2cb8b8.jpg</url>
      <title>DEV Community: Sasireka Balasubramaniyam</title>
      <link>https://dev.to/sasireka_40</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sasireka_40"/>
    <language>en</language>
    <item>
      <title>GA4 report snapshot templates: User behavior, Sales and marketing performance</title>
      <dc:creator>Sasireka Balasubramaniyam</dc:creator>
      <pubDate>Fri, 08 May 2026 12:22:22 +0000</pubDate>
      <link>https://dev.to/sasireka_40/ga4-report-snapshot-templates-user-behavior-sales-and-marketing-performance-4f33</link>
      <guid>https://dev.to/sasireka_40/ga4-report-snapshot-templates-user-behavior-sales-and-marketing-performance-4f33</guid>
      <description>&lt;p&gt;Acquiring users to our website is not easy, and bringing them back is more difficult. But if our content reaches people, it will increase the sales and revenue. Initially, we can’t manually collect visitors’ data from our website. By using Google Analytics, we can achieve it. It details your data in numbers and in a report format.&lt;/p&gt;



&lt;h2&gt;
  
  
  What is GA4 and why it is used?
&lt;/h2&gt;

&lt;p&gt;The Google Analytics dashboard is one of Google's products. This dashboard is a visual representation of metrics and key performance indicators (KPI). It is mainly used to track your website analysis. Google Analytics consists of some pre-built templates inside the report section to explore data visually. These pre-built templates help to save your time for building manual reports from scratch.&lt;/p&gt;



&lt;h2&gt;
  
  
  Let’s build a Google Analytics report snapshot
&lt;/h2&gt;

&lt;p&gt;If you’ve never used Google Analytics, then just open &lt;a href="https://developers.google.com/analytics" rel="noopener noreferrer"&gt;https://developers.google.com/analytics&lt;/a&gt; and log in with your email. Next, create an account for your website. It asks for your website URL and fill other details correctly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faw9jq9df2jsujs9xs09w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faw9jq9df2jsujs9xs09w.png" alt="Google Analytics account creation" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have an account just skip the above step. After creating the account, you have to add the script to all pages, and then it will track the events that happen on your website. You can find the tag in Admin → Data streams → Select the stream you provide → Scroll down and find ‘View tag instructions’ → Select ‘Install Manually’&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzl4wsiq2mfo6fihqvio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzl4wsiq2mfo6fihqvio.png" alt="Instruction tag to add website pages" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the report snapshot template based on your business needs. Specific and accurate data will enough for detail analysis. This GS4 snapshot customization allows you to setup the dashboard as your needs.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Template 1: User behavior
&lt;/h3&gt;

&lt;p&gt;If you just want to see your website overview, top pages and screens data, daily users count like active users, new users and how many returning users, engagement metrics like engagement sessions, average engagement time, scrolling and events. This template is enough to find those metrics in one dashboard.&lt;/p&gt;

&lt;p&gt;From this data you can optimise your website UI and content quality to bring more traffic. This template is more useful for content creators who can check which article page brings more attention, developers who can identify whether the new page or content reaches after deployment, and any site that focuses on engagement more than revenue.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F59bdh9avm4h8z93uje9n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F59bdh9avm4h8z93uje9n.png" alt="User behavior template" width="800" height="427"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Template 2: Sales and Revenue 💰
&lt;/h3&gt;

&lt;p&gt;If you are running ecommerce business website or any other platform like Shopify, WooCommerce, or developers with in-app purchases and subscriptions on their website, or business owners who want to track their revenue-driving product for those, this template gives you the relevant metrics for your easy analysis. You can identify the top-performing product, which drives more revenue.&lt;/p&gt;

&lt;p&gt;This template directly connects the traffic sources with your revenue. So that you can identify the reason why revenue drops even though traffic is high and optimise the solution. It clearly describes which channels drive more traffic and purchases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zxi7uk1873sd4qyqav9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zxi7uk1873sd4qyqav9.png" alt="Sales and revenue template" width="800" height="422"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Template 3: Marketing performance
&lt;/h3&gt;

&lt;p&gt;This template measures marketing channel performance and attribute conversions. This template is best for digital marketers who run multiple-channel campaigns, SEO specialists to track their organic growth vs paid, and marketing teams who optimise and handle ad spend across all platforms like Google Ads, Meta and email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This template covers some important things:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Channel groupings - organic, paid, social, referral searches side by side&lt;/li&gt;
&lt;li&gt;New users and returning users acquisition by their source or medium&lt;/li&gt;
&lt;li&gt;Conversion data - which channel gets more credits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxth8ec3mgo5ira9lcu2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxth8ec3mgo5ira9lcu2.png" alt="marketing performance template" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By knowing these template types, you can get the actual dashboard you want. You can avoid unwanted data. For example, if you are running a website for posting articles and there is no payment and subscription or purchase option, then there is no purchase data available in your Google Analytics report dashboard. So, you can clearly choose the ‘User behavior’ template.&lt;/p&gt;

&lt;p&gt;Initially, you can choose &lt;strong&gt;only one template for one account.&lt;/strong&gt; Later, you can customise this from Reports → library. I read about the important metrics in the blog &lt;a href="https://agentzee.ai/blogs/google-analytics-report-template-the-10-metrics-every-business-owner-should-track" rel="noopener noreferrer"&gt;https://agentzee.ai/blogs/google-analytics-report-template-the-10-metrics-every-business-owner-should-track&lt;/a&gt;. It makes you clearer. If you have any doubts or suggestions post them in the comments. Let's discuss.&lt;/p&gt;

</description>
      <category>googleanalytics</category>
      <category>webanalytics</category>
      <category>reportsnapshot</category>
      <category>dataanalytics</category>
    </item>
    <item>
      <title>Accessing Google Ads data via API is easy</title>
      <dc:creator>Sasireka Balasubramaniyam</dc:creator>
      <pubDate>Fri, 08 May 2026 06:21:25 +0000</pubDate>
      <link>https://dev.to/sasireka_40/accessing-google-ads-data-via-api-is-easy-3ca5</link>
      <guid>https://dev.to/sasireka_40/accessing-google-ads-data-via-api-is-easy-3ca5</guid>
      <description>&lt;p&gt;If you are going to build automation tools or marketing dashboards for Google Ads data, you need to pull it out through the API. It is easier than you think. This tutorial helps you access Google Ads data via API.&lt;/p&gt;

&lt;p&gt;Before this, you should have a Google Ads manager account and some campaign data. Next, we need to create a cloud project.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Google Cloud project? And why is it needed?
&lt;/h2&gt;

&lt;p&gt;Google Cloud project is act like an intermediator between the user and the user’s Google Ads account. You heard about authentication and authorisation. In technical we use OAuth. For this process we create a project with a secret ID and a key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Ads API integration
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Creating a cloud project
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open the Google Cloud console &lt;a href="https://console.cloud.google.com/" rel="noopener noreferrer"&gt;https://console.cloud.google.com/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If you have an account and project, just use it. Otherwise create a new project.&lt;/li&gt;
&lt;li&gt;Click the console in the top right corner and then open ‘My First Project’. Create new project with all necessary data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fagy5ozrp86ac8efu2zs4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fagy5ozrp86ac8efu2zs4.png" alt="Google cloud project" width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Creating client ID and secret
&lt;/h3&gt;

&lt;p&gt;This client ID and secret will be used for authentication purpose later.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Search ‘Google OAuth Platform’ and click ‘Clients’&lt;/li&gt;
&lt;li&gt;If you created a new project, then it asks for the project configuration. Fill in all the necessary data. Otherwise create a client.&lt;/li&gt;
&lt;li&gt;Go to Clients → Create client. It asks for application type, based on your need choose one.&lt;/li&gt;
&lt;li&gt;Then fill in the application name and the redirect URI for callback.  The redirect URI will be valid.&lt;/li&gt;
&lt;li&gt;Download your credential file, and it disappears after closing the tab.&lt;/li&gt;
&lt;li&gt;This JSON consists of client ID and client secret, and other credentials.&lt;/li&gt;
&lt;li&gt;If you have any doubts about this step, just refer to the blog &lt;a href="https://agentzee.ai/blogs/how-to-access-google-ads-manager-data-via-api-with-an-access-token#steps-to-applying-for-a-developer-token" rel="noopener noreferrer"&gt;https://agentzee.ai/blogs/how-to-access-google-ads-manager-data-via-api-with-an-access-token#steps-to-applying-for-a-developer-token&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8tur5qzbwm3fqosrg399.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8tur5qzbwm3fqosrg399.png" alt="client creation" width="513" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Enable Google Ads API
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Search for ‘APIs and Services’&lt;/li&gt;
&lt;li&gt;Click ‘Enable APIs and services’&lt;/li&gt;
&lt;li&gt;Search for Google Ads API and click the ‘Enable’ button.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmp8g4o1ohzpbl8jw1zl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmp8g4o1ohzpbl8jw1zl.png" alt="Enable google ads API" width="763" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Apply for a developer token
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open your Google Ads account dashboard &lt;a href="https://ads.google.com/" rel="noopener noreferrer"&gt;https://ads.google.com/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Go to Admin → API center. There, you can find the test developer token. For internal use, you can use this token.&lt;/li&gt;
&lt;li&gt;For production purposes, you should apply for the ‘Basic level’ or ‘Advanced level’ based on your needs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97tddwtpffzco2ca63p9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97tddwtpffzco2ca63p9.png" alt="Developer token in Google Ads account" width="474" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Generate an access token
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;After all these now we are going to generate an access token. By using the URL below in the browser we’ll get a ‘code’. We are going to fetch the data on behalf of the user. So we need to perform authentication. For that purpose we need to get the code and exchange it for generating the access token.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This ‘code’ lifetime is very short, so we need to use it immediately.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_
ID&amp;amp;redirect_uri=YOUR_REDIRECT_URI&amp;amp;response_type=code&amp;amp;
scope=https://www.googleapis.com/auth/adwords
&amp;amp;access_type=offline&amp;amp;prompt=consent
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Here, we need to replace the client ID and redirect URI from the JSON we downloaded before and hit the URL in the browser.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It will redirect to the page we mentioned in the ‘redirect URI.’ Finally, just copy the code from the URL tab.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n57skv1t1b6fxgz1kp5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n57skv1t1b6fxgz1kp5.png" alt="Authentication code" width="800" height="97"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After copying the code, immediately paste it somewhere and hit the API to generate access token.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://oauth2.googleapis.com/token &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"code=AUTHORIZATION_CODE"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"client_id=YOUR_CLIENT_ID"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"client_secret=YOUR_CLIENT_SECRET"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"redirect_uri=YOUR_REDIRECT_URI"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"grant_type=authorization_code"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Here, replace your code, client ID, client secret, and redirect URI.&lt;br&gt;&lt;br&gt;
Hit the API in Postman or any platform you’ve regularly used.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You’ll see the output like this. Generally, this access token's life span is only one hour.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"access_token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ya29.a0AfH6SMA..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"expires_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3599&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"refresh_token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1//0gdfgsdfg..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"scope"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://www.googleapis.com/auth/adwords"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"token_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6: Access Google Ads data via API
&lt;/h3&gt;

&lt;p&gt;Now you have an access token and a developer token. Follow the command below in Postman.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://googleads.googleapis.com/v16/customers/_CUSTOMER_ID_/googleAds:searc
h"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer ACCESS_TOKEN"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"developer-token: DEVELOPER_TOKEN"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"login-customer-id: MANAGER_ID"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
  "query": "
    SELECT
      campaign.id,
      campaign.name,
      metrics.impressions,
      metrics.clicks
    FROM ad_group
    WHERE segments.date DURING LAST_7_DAYS
  "
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From this, replace your generated access token, Developer token, and Manager ID from your Google Ads account and CUSTOMER_ID from your Google Ads account. Your response will be like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"results"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"campaign"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"123456789"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Search Campaign"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"metrics"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"impressions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"5400"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"clicks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"320"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more API references use this link &lt;a href="https://developers.google.com/google-ads/api/docs/client-libs" rel="noopener noreferrer"&gt;https://developers.google.com/google-ads/api/docs/client-libs&lt;/a&gt;. By using the APi you can fetch all data that is displayed on your Google Ads dashboard without opening it. It gives easy access to your data.&lt;/p&gt;

&lt;p&gt;To know more about this, kindly refer to the above blog. It clearly explains the steps and screenshots. If you have any doubts, refer to and clear. &lt;/p&gt;

&lt;p&gt;If you have any doubts or clarifications, don’t hesitate, just leave a comment. I hope this helps.&lt;/p&gt;

</description>
      <category>api</category>
      <category>apigateway</category>
      <category>automation</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
