Google Ads API does not return search volume but Adwords API does

166 views
Skip to first unread message

David Mrnuštík

unread,
Aug 11, 2022, 8:44:27 AM8/11/22
to Google Ads API and AdWords API Forum
Hello Google Ads team,
I requested historical metrics for keyword feuerschale kinder with location code 2276, language code 1001 by calling Google Ads API KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics method, but keyword_metrics in response was null.

Request body:
{
  "customer_id": "xxxxxxxx",
  "keywords": [
    "feuerschale kinder"
  ],
  "language": "languageConstants/1001",
  "geo_target_constants": [
    "geoTargetConstants/2276"
  ],
  "keyword_plan_network": 2,
  "include_adult_keywords": true,
  "historical_metrics_options": {
    "year_month_range": {
      "start": {
        "year": 2021,
        "month": "AUGUST"
      },
      "end": {
        "year": 2022,
        "month": "JULY"
      }
    }
  }
}

Response:
{
  "results": [
    {
      "close_variants": [],
      "keyword_metrics": null,
      "text": "feuerschale kinder",
      "_text": "text"
    }
  ],
  "aggregate_metric_results": null
}

I also requested historical metrics for the same keyword and the same location and language by calling deprecated Google Adwords API TargetingIdeaService with RequestType.STATS option.

Request selector:
{
  "searchParameters": [
    {
      "xsi:type": "NetworkSearchParameter",
      "networkSetting": {
        "cm:targetGoogleSearch": true,
        "cm:targetSearchNetwork": false,
        "cm:targetContentNetwork": false,
        "cm:targetPartnerSearchNetwork": false
      }
    },
    {
      "xsi:type": "RelatedToQuerySearchParameter",
      "queries": [
        "feuerschale kinder"
      ]
    },
    {
      "xsi:type": "LocationSearchParameter",
      "locations": [
        {
          "cm:id": "2276"
        }
      ]
    },
    {
      "xsi:type": "LanguageSearchParameter",
      "languages": [
        {
          "cm:id": "1001"
        }
      ]
    }
  ],
  "ideaType": "KEYWORD",
  "requestType": "STATS",
  "requestedAttributeTypes": [
    "KEYWORD_TEXT",
    "AVERAGE_CPC",
    "TARGETED_MONTHLY_SEARCHES"
  ],
  "paging": {
    "startIndex": 0,
    "numberResults": 500
  }
}

Response:
{
  "totalNumEntries": 1,
  "entries": [
    {
      "data": [
        {
          "key": "KEYWORD_TEXT",
          "value": {
            "attributes": {
              "xsi:type": "StringAttribute"
            },
            "Attribute.Type": "StringAttribute",
            "value": "feuerschale kinder"
          }
        },
        {
          "key": "TARGETED_MONTHLY_SEARCHES",
          "value": {
            "attributes": {
              "xsi:type": "MonthlySearchVolumeAttribute"
            },
            "Attribute.Type": "MonthlySearchVolumeAttribute",
            "value": [
              {
                "year": 2022,
                "month": 7
              },
              {
                "year": 2022,
                "month": 6
              },
              {
                "year": 2022,
                "month": 5
              },
              {
                "year": 2022,
                "month": 4
              },
              {
                "year": 2022,
                "month": 3
              },
              {
                "year": 2022,
                "month": 2
              },
              {
                "year": 2022,
                "month": 1
              },
              {
                "year": 2021,
                "month": 12
              },
              {
                "year": 2021,
                "month": 11
              },
              {
                "year": 2021,
                "month": 10
              },
              {
                "year": 2021,
                "month": 9
              },
              {
                "year": 2021,
                "month": 8
              }
            ]
          }
        },
        {
          "key": "AVERAGE_CPC",
          "value": {
            "attributes": {
              "xsi:type": "MoneyAttribute"
            },
            "Attribute.Type": "MoneyAttribute"
          }
        }
      ]
    }
  ]
}

We use https://github.com/Opteo/google-ads-api library as it has been updated with v11 API.
Could you please check what could possibly had happened?

Thank you in advance.

Kind regards,
David Mrnustik

Google Ads API Forum Advisor

unread,
Aug 11, 2022, 9:59:44 AM8/11/22
to david.m...@rindus.de, adwor...@googlegroups.com
Hi David,

Thank you for reaching out to our API support team.

So our team can take a closer look, could you share your complete request and response logs and the request-id? You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

In addition, you may also note that the Google Adwords API TargetingIdeaService with RequestType.STATS option should map (see mapping guide) instead to the KeywordPlanService.GenerateHistoricalMetrics, and that the KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics should also be a different feature.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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