Ambiguous error. What is my INVALID_VALUE?

117 views
Skip to first unread message

Bruce Axtens

unread,
Jul 31, 2023, 7:03:09 AM7/31/23
to Google Ads API and AdWords API Forum
Following on from my previous post,  another problem. 

The error "Request contains an invalid argument." is a tad ambiguous. A JSON serialization of the error object's Failure property includes '"KeywordPlanIdeaError": 3,"HasKeywordPlanIdeaError": true,' which is also a little ambiguous.

-Bruce

GoogleAds.DetailedRequestLogs Information: 1 : [2023-07-31 09:27:02Z] -
---------------BEGIN API CALL---------------

Request
-------

Method Name: /google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordForecastMetrics
Host:
Headers: {
  "x-goog-api-client": "gl-dotnet/4.8.1 gapic/16.1.0 gax/4.2.0+a8085e4f36ad24e2747b5e550f11079d4a891e78 grpc/2.46.3 gccl/3.0.0 pb/3.21.5+638779f353731a0a04496bde20d14164684c3d93",
  "developer-token": "REDACTED",
  "login-customer-id": "2963060815",
  "x-goog-request-params": "customer_id=7415265454"
}

{ "customerId": "7415265454", "forecastPeriod": { "startDate": "2023-08-30", "endDate": "2023-09-30" }, "campaign": { "languageConstants": [ "languageConstants/1000" ], "geoModifiers": [ { "geoTargetConstant": "geoTargetConstants/2826" } ], "keywordPlanNetwork": "GOOGLE_SEARCH", "biddingStrategy": { "manualCpcBiddingStrategy": { "dailyBudgetMicros": "100000000000", "maxCpcBidMicros": "500000000" } }, "conversionRate": 0, "adGroups": [ { "maxCpcBidMicros": "10000000000", "biddableKeywords": [ { "keyword": { "matchType": "EXACT", "text": "workforce management software" }, "maxCpcBidMicros": "100000000000" } ] } ] } }

Response
--------
Headers: {
  "request-id": "K-2AVmTo4IfEsdJz1ADL9g",
  "date": "Mon, 31 Jul 2023 09:27:01 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "google.ads.googleads.v14.errors.googleadsfailure-bin": "CiYKA+AEAxIfVGhlIGlucHV0IGhhcyBhbiBpbnZhbGlkIHZhbHVlLhIWSy0yQVZtVG80SWZFc2RKejFBREw5Zw==",
  "grpc-status-details-bin": "CAMSJVJlcXVlc3QgY29udGFpbnMgYW4gaW52YWxpZCBhcmd1bWVudC4aiAEKRHR5cGUuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEkAKJgoD4AQDEh9UaGUgaW5wdXQgaGFzIGFuIGludmFsaWQgdmFsdWUuEhZLLTJBVm1UbzRJZkVzZEp6MUFETDln"
}

Fault: {
  "StatusCode": 3,
  "Details": "Request contains an invalid argument.",
  "RequestId": "K-2AVmTo4IfEsdJz1ADL9g",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "keywordPlanIdeaError": "INVALID_VALUE"
        },
        "message": "The input has an invalid value."
      }
    ],
    "requestId": "K-2AVmTo4IfEsdJz1ADL9g"
  }
}
----------------END API CALL----------------

Google Ads API Forum Advisor

unread,
Jul 31, 2023, 11:14:39 AM7/31/23
to bru...@searchsmart.com.au, adwor...@googlegroups.com
Hi Bruce,

Thank you for reaching out to our team.

Upon checking, it appears that you have an existing thread with the subject "C# access to Generate Forecast Metrics" where you also raised this new issue. Having said that, I already provided suggestions on the other thread and I suggest using the other thread for better tracking and to avoid confusion.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2nZHSZ:ref"

Thanks,
 
Google Logo Google Ads API Team


Bruce Axtens

unread,
Jul 31, 2023, 9:22:32 PM7/31/23
to Google Ads API and AdWords API Forum
>   I suggest using the other thread for better tracking and to avoid confusion.
 Fair call. I just wasn't sure if adding a second issue in the first would be noticed. 

Thanks,

Google Ads API Forum Advisor

unread,
Aug 1, 2023, 4:15:42 AM8/1/23
to bru...@searchsmart.com.au, adwor...@googlegroups.com

Hi Bruce,

Thank you for the reply.

Since you mentioned that you are planning to reach out for a second issue that differs from the first one you emailed to us, I would suggest you feel free to send those over to our team in a new, fresh thread, and we would be happy to assist you further. This is also for better tracking of updates.

 

Reply all
Reply to author
Forward
0 new messages