Confused about Ads documentation

58 views
Skip to first unread message

axtens

unread,
May 9, 2022, 5:01:28 AM5/9/22
to Google Ads API and AdWords API Forum
I've adapted the code at <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas>. I don't understand why at one point why the example says,
```
        var response =
            keywordPlanIdeaService.GenerateKeywordIdeas(request);

```
and then about three lines later says,
```
            KeywordPlanHistoricalMetrics metrics = result.KeywordIdeaMetrics;
```
It seems on the one hand to be generating keyword ideas and then on the other giving history.

Now in the documentation at <https://developers.google.com/google-ads/api/reference/rpc/v10/KeywordPlanIdeaService> it says that there's `GenerateKeywordHistoricalMetrics` and `GenerateKeywordIdeas`, however when I try to use the former in the example, VS2022 indicates that the name is unknown.

So my questions are:
1. What does the C# code on the "idea generation" page demonstrate Ideas or Historical Metrics (are these the same, conceptually, as AdWords' IDEAS and STATS respectively?)?
2. If it is in fact demonstrating Ideas, how would one adapt it for Historical Metrics?

--- Bruce

Google Ads API Forum Advisor

unread,
May 10, 2022, 11:11:47 PM5/10/22
to bruce....@gmail.com, adwor...@googlegroups.com
Hi Bruce,

Thank you for posting your concern. Allow me to provide support to your concern.

Please see my answer below for each question:

"1. What does the C# code on the "idea generation" page demonstrate Ideas or Historical Metrics (are these the same, conceptually, as AdWords' IDEAS and STATS respectively?)?"
-The provided document and the sample code under it is more focused on generating keyword ideas but historical statistics such as search volume data are also included to help you determine if you want to use the keywords for your campaign. Also, I can confirm that the provided document are the same concept with AdWords API IDEAS and STATS.


"2. If it is in fact demonstrating Ideas, how would one adapt it for Historical Metrics?"
-I would suggest referring to this document as it discusses further how to manage generating historical metrics.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aqwgB:ref
Reply all
Reply to author
Forward
0 new messages