POST /v15/customers/CustomerID:generateKeywordForecastMetrics HTTP/1.1 Host: googleads.googleapis.com Developer-token: redacted Content-length: 650 Content-type: application/json Authorization: Bearer redacted Login-customer-id: redacted(My MCC ID where I Oauthed){ "forecastPeriod": { "startDate": "2023-12-14", "endDate": "2024-02-14" }, "currencyCode": "USD", "campaign": { "biddingStrategy": { "maximizeConversionsBiddingStrategy": { "dailyTargetSpendMicros": 10000000, } }, "conversionRate": 0.05, "keywordPlanNetwork": "GOOGLE_SEARCH", "geoModifiers": [ { "geoTargetConstant": "geoTargetConstants/2840" } ], "adGroups": [ { "biddableKeywords": [ { "keyword": { "matchType": "PHRASE", "text": "ISNetworld" } } ] } ] } }HTTP/1.1 400 Bad Request Content-length: 510 X-xss-protection: 0 X-content-type-options: nosniff Transfer-encoding: chunked Request-id: 05-D0lXDktWMJpwLmVTP7g Vary: Origin, X-Origin, Referer Server: ESF -content-encoding: gzip Cache-control: private Date: Thu, 14 Dec 2023 16:15:34 GMT X-frame-options: SAMEORIGIN Alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 Content-type: application/json; charset=UTF-8{ "error": { "status": "INVALID_ARGUMENT", "message": "Request contains an invalid argument.", "code": 400, "details": [ { "errors": [ { "errorCode": { "keywordPlanIdeaError": "INVALID_VALUE" }, "message": "The input has an invalid value." } ], "@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure", "requestId": "05-D0lXDktWMJpwLmVTP7g" } ] } }
On Thursday, December 14, 2023 at 8:56:23 AM UTC-7 Tyler Hanson wrote: > Hey Team, currently testing out with the rest API doing a call to the > endpoint for keyword forecast metrics. I keep getting this dang error for > invalid argument for the keywordplan idea but I tried all the ENUMs > provided in the documentation but still no go. Not sure what to do here. > See traceID and requests below: > > Request Body: > { > "currencyCode": "USD", > "forecastPeriod": { > "startDate": "2023-12-14", > "endDate": "2024-02-24" > }, > "campaign": { > "conversionRate": 0.10, > "keywordPlanNetwork": "GOOGLE_SEARCH", > "languageConstants": [ > "languageConstants/1000" > ], > "geoModifiers": [ > { > "geoTargetConstant": "geoTargetConstants/2840" > } > ], > "biddingStrategy": { > "maximizeClicksBiddingStrategy": { > "dailyTargetSpendMicros": 50000000 > } > }, > "adGroups": [ > { > "biddableKeywords": [ > { > "keyword": { > "matchType": "BROAD", > "text": "HVAC Plumbers Near Me" > } > }, > { > "keyword": { > "matchType": "BROAD", > "text": "HVAC services" > } > }, > { > "keyword": { > "matchType": "BROAD", > "text": "HVAC Installation" > } > }, > { > "keyword": { > "matchType": "BROAD", > "text": "HVAC Plumbers" > } > } > ] > } > ] > } > } > > requestID: dDhXeCLddM9yP9e5yDMo9g > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/6808eae4-f689-403c-9601-68add90a23b0n%40googlegroups.com.