Hello, 

I'm trying to call the 
https://googleads.googleapis.com/v16/customers/{customerId}:generateKeywordIdeas
 
endpoints with the parameters below.

The geoTargetConstants have been generated with the 
https://googleads.googleapis.com/v16/geoTargetConstants:suggest endpoint 
and were successful (According to the excel sheet containing all the 
locations, all the constants are related to one)

This params generate an error: 
{
  "geoTargetConstants": [
    "geoTargetConstants/2312",
    "geoTargetConstants/9070394",
    "geoTargetConstants/9069935",
    "geoTargetConstants/1007479",
    "geoTargetConstants/1007477",
    "geoTargetConstants/1007476",
    "geoTargetConstants/1007478",
    "geoTargetConstants/2175",
    "geoTargetConstants/9075994",
    "geoTargetConstants/9075993",
    "geoTargetConstants/9075991",
    "geoTargetConstants/9075992",
    "geoTargetConstants/9075990"
  ],
  "includeAdultKeywords": true,
  "pageSize": 25,
  "keywordPlanNetwork": "GOOGLE_SEARCH",
  "language": "languageConstants/1002",
  "siteSeed": {
    "site": "https://www.skyteam.com/en/";
  }
}


Here is the error:
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "keywordPlanIdeaError": "INVALID_VALUE"
            },
            "message": "The input has an invalid value.",
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "geo_target_constants"
                }
              ]
            }
          }
        ],
        "requestId": "L4Iz-V3njTr0Nm0d6L74CQ"
      }
    ]
  }
}

Nevertheless if I remove
"geoTargetConstants/9075991",
"geoTargetConstants/9075992",
"geoTargetConstants/9075990"

the API call to generate keywords succeed, but if i keep these constants 
and then remove those 3
"geoTargetConstants/1007477",
"geoTargetConstants/1007476",
"geoTargetConstants/1007478",

the error also doesn't occur anymore.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d40bbb22-f7e7-453a-9caf-c55cb1b90e3an%40googlegroups.com.

Reply via email to