Okay that appeared to have fixed one problem. It was the email address used. Now I've got a different 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---------------- On Monday, July 31, 2023 at 4:32:32 PM UTC+8 Google Ads API Forum Advisor wrote: > Hi Bruce, > > Thank you for reaching out to Google Ads API Forum. > > I can see that you have encountered the *USER_PERMISSION_DENIED* error. > This error usually indicates that the authorized customer does not have > access to the operating customer. > > That being said, you will need to ensure that the user / email address you > used to generate the *OAuth2 credentials* indeed has *access* to the > account in your request. If the user / email address has access or is > associated with the MCC / manager account, you will need to* specify the > MCC / manager account's ID without hyphens (-) as the value of > the login-customer-id field.* > > Let us know how it goes on your end if this resolves your issue. If the > error persists after trying the suggested solution, then you may provide to > us the updated complete API logs (*request* and *response* with > *request-id *and *request header)* generated when you encountered the > said error along with the *email address* used to generate the OAuth2 > credentials from your end so we can investigate further. You can provide it > via the Reply privately to author option. If this option is not available, > then send it instead on this email address googleadsa...@google.com > <https://groups.google.com/>. > > Reference links included in this email: > > - USER_PERMISSION_DENIED: > > *https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#authorizationerror* > > > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#authorizationerror> > > - OAuth2 credentials: > > *https://developers.google.com/google-ads/api/docs/oauth/cloud-project?hl=en#create_a_client_id_and_client_secret* > > > <https://developers.google.com/google-ads/api/docs/oauth/cloud-project?hl=en#create_a_client_id_and_client_secret> > > - access: > > *https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227&rd=1* > > > <https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227&rd=1> > > - login-customer-id: > > *https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid* > > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid> > > - request: > > *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request* > > > <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request> > > - response: > > *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response* > > > <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response> > > - request-id: > > *https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id* > > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id> > > - request header - > > *https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers* > > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers> > > > > This message is in relation to case "ref:_00D1U1174p._5004Q2mxRvV:ref" > > Thanks, > > [image: Google Logo] Google Ads API Team > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/06d24a79-8246-4676-8457-844accaf3d83n%40googlegroups.com.