Relation among Metrics Data of Campaign, Adgroup and Keyword

45 views
Skip to first unread message

Suvigya Agrawal

unread,
Sep 20, 2023, 7:57:18 AM9/20/23
to Google Ads API and AdWords API Forum
We are pulling following metrics data for campaign, adgroup and keyword-
Impressions, Clicks, CTR, Cost, Conversions, All_Conversions, Average_CPC
I am using following queries-

Campaign:

SELECT campaign.name, campaign.id, campaign.start_date, campaign.end_date, campaign.status, campaign.advertising_channel_type, metrics.impressions, metrics.clicks, metrics.ctr, metrics.cost_micros, metrics.conversions, metrics.all_conversions, metrics.average_cpc, segments.date FROM campaign

Adgroup:

SELECT campaign.name, campaign.id, campaign.start_date, campaign.end_date, campaign.status, ad_group.name, ad_group.id, ad_group_ad.ad.id, ad_group_ad.ad.responsive_search_ad.headlines, ad_group_ad.ad.responsive_search_ad.descriptions, ad_group_ad.ad.final_urls, metrics.impressions, metrics.clicks, metrics.ctr, metrics.cost_micros, metrics.conversions, metrics.all_conversions, metrics.average_cpc, segments.date FROM ad_group_ad

Keyword:

SELECT campaign.name, campaign.id, campaign.start_date, campaign.end_date, campaign.status, ad_group.name, ad_group.id, ad_group_criterion.keyword.text, ad_group_criterion.criterion_id, ad_group_criterion.keyword.match_type, metrics.impressions, metrics.clicks, metrics.ctr, metrics.cost_micros, metrics.conversions, metrics.all_conversions, metrics.average_cpc, segments.date FROM keyword_view

NOTE- Please ignore other fields in query (our main concern is relation among metrics data of campaign, adgroup and keyword).

If we pull data for a particular date range for example-

WHERE segments.date >= ‘date1’ AND segments.date <= ‘date2’

Then, which of the metrics total should match among campaign, adgroup and keyword.

I mean, (Sum of all clicks of campaign) should be equal to (Sum of all clicks of adgroup) and (Sum of all clicks of keyword).

This condition is necessary or not, if not what are the possibilities.
Please list all the above metrics whose total should match among campaign, adgroup and keyword data (for a specific date range)


Thanks.

Google Ads API Forum Advisor

unread,
Sep 21, 2023, 5:23:23 AM9/21/23
to suvigyaa...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are fetching metrics data from Campaign, Adgroup, Keyword and would like to know which of the metrics total should match among Campaign, Adgroup and Keyword.

Kindly note that it is not necessary that the sum of all clicks of a Campaign should be equal to the sum of all clicks of Adgroup and sum of all clicks of Keyword.

Because a campaign can have many Ad groups and an Ad group may have any number of Ads, it is not necessary that the metrics of a campaign should be the same as the metrics of an Ad group or Keyword.


 
This message is in relation to case "ref:_00D1U1174p._5004Q2ozlRh:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages