[ADS API v9] Metrics (cost per click) from Keyword Plan Ad Group Keywords

477 views
Skip to first unread message

Lasse Bonner

unread,
Dec 21, 2021, 4:50:58 AM12/21/21
to AdWords API and Google Ads API Forum
Hello,

I would like to extract metrics, mainly 'cost per click', from Keyword Plan Ad Group Keywords, in google ads api v9, without creating a forecast (this seems to return wrong numbers). 

My work flow is as follow:
1. Create a Keyword Plan, - Campaign and - Ad Group
2. Add keyword to the ad group 
3. Generate historical metris using 'generate_historical_metrics', these include search volume and competition. 
4. ??? Here I would like to add cpc to the above query

What I have tried:
- Look in keyword_view. It doesn't seem to be the same backend as keyword plans, as I don't see the keyword I create on keyword plans in the keyword_view. In addition there doesn't seem to be a direct link from keyword in keyword_view to Keyword Plan Ad Group Keywords.
- Create a forecast with the same stats, however this doesn't return the same values as the corresponding query in v8 of the api. 

Best regards,
Lasse 

Lasse Bonner

unread,
Dec 21, 2021, 4:56:58 AM12/21/21
to AdWords API and Google Ads API Forum
I think what I am looking for is metrics on the keyword_plan_ad_group_keyword query  (https://developers.google.com/google-ads/api/fields/v9/keyword_plan_ad_group_keyword_query_builder)

Google Ads API Forum Advisor

unread,
Dec 22, 2021, 3:42:25 AM12/22/21
to adwor...@googlegroups.com
Hi Lasse,

Thank you for reaching out.

Metrics are currently not available in the keyword_plan_ad_group_keyword view.

That said, could you be instead referring to the generate forecast metrics feature where you can extract / generate metrics such as the average cost per click?

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2TOHT2:ref

Lasse Bonner

unread,
Dec 22, 2021, 7:41:51 AM12/22/21
to AdWords API and Google Ads API Forum
Hello Peter,

Yeah, I figured. 
I made it work using the forecast, but it seems that there is discrepancy between what is returned from the old Google Adwords API and the new Google Ads v9, for certain keywords. 
I experience that keywords that have a value for cpc in the old api has no value in the forecast metrics. In addition when the new api returns a value it is not the same as the old api. 

Best regards
Lasse

Google Ads API Forum Advisor

unread,
Dec 23, 2021, 1:31:43 AM12/23/21
to adwor...@googlegroups.com
Hi Lasse,

Thank you for providing updates to our team.

To further investigate the issue, could you provide the following details?
You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Also, could you try comparing the results of the 2 APIs in the UI? I said this because the data that Google Ads API returns is more similar with what is in the UI. 

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2TOHT2:ref

Aqeel Ashraf

unread,
Feb 8, 2022, 9:31:10 AM2/8/22
to Google Ads API and AdWords API Forum
Hi,

I am having the same issue. In Old AdWords API, CPC values are far different then in New Google Ads API. I am using GenerateForecastMetrics example and update values as stated below:

Keywords:
garde meuble paris
location stockage paris
location garde meuble paris

Location: France
Language: French
Match Type: Exact

Result:
                                                                            AdWords API                             Google Ads API              
KEYWORDS                                                   CPC  -  CLICKS                               CPC  -   CLICKS
garde meuble paris                                      50.08 -    283.5                               3.56 -   204.64
location stockage paris                               43.21 -      39.6                               3.84 -     30.12
location garde meuble paris                       52.77 -      29.1                               3.80 -     23.2

Please have a look on the above difference and let me know if anything I did wrong. Thanks

Google Ads API Forum Advisor

unread,
Feb 8, 2022, 9:12:02 PM2/8/22
to aqeel...@gmail.com, adwor...@googlegroups.com
Hi Aqeel,

Thank you for raising your concern.


To further investigate the issue, could you provide the following details?

I would also suggest comparing the results of the 2 APIs in the UI and see which APIs returned closer value. Please provide the screenshot of the UI as well.


You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reply all
Reply to author
Forward
0 new messages