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

David Mrnuštík
Javascript Developer, rindus Technology 
7 S.L.
C/ Severo Ochoa, 29, 29590 Campanillas (Málaga), Spain
Tel: +34 951 120 035
Geschäftsführer / Managing Director: Dominikus Schweighart, Rolf C. Zipf
CIF B-42757138, ​VAT ID ES42757138

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a772119f-cbcd-4387-b9b3-966b7346ab6en%40googlegroups.com.
  • Go... David Mrnuštík
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to