RE: error using generatekeywordforecastmetrics: "the input has an invalid value"

38 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 21, 2025, 10:03:56 AM7/21/25
to st...@adcom.fr, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

I understand you are encountering the INVALID_VALUE error which indicates that the field's value is invalid. It seems that with additional parameters like maxCpcBidMicros combined with the maximizeConversionsBiddingStrategy will cause the endpoint not returning a forecast.

Please refer to the below request body I tested with by removing the additional parameters, which can get the successful forecast:

{

  "forecastPeriod": {

    "startDate": "2025-07-22",

    "endDate": "2025-08-20"

  },

  "campaign": {

    "languageConstants": [

      "languageConstants/1002"

    ],

    "geoModifiers": [

      {

        "geoTargetConstant": "geoTargetConstants/2250"

      }

    ],

    "keywordPlanNetwork": "GOOGLE_SEARCH",

    "biddingStrategy": {

      "maximizeConversionsBiddingStrategy": {

        "dailyTargetSpendMicros": 5000000

      }

    },

    "adGroups": [

      {

        "biddableKeywords": [

          {

            "keyword": {

              "matchType": "BROAD",

              "text": "test1"

            }

          }

        ]

      },

      {

        "biddableKeywords": [

          {

            "keyword": {

              "matchType": "PHRASE",

              "text": "test2"

            }

          }

        ]

      },

      {

        "biddableKeywords": [

          {

            "keyword": {

              "matchType": "EXACT",

              "text": "test3"

            }

          }

        ],

        "negativeKeywords": [

          {

            "matchType": "BROAD",

            "text": "test4"

          }

        ]

      }

    ]

  }

}

Is maximize_conversions_bidding_strategy not supported by GenerateKeywordForecastMetrics?

The maximize_conversions_bidding_strategy field is supported in the GenerateKeywordForecastMetrics method. But maximize_conversions_bidding_strategy combined with maxCpcBidMicros is not supported.

Is there a specific combination of fields or requirements that I may have missed?

No, you haven't missed any fields but you added additional fields like maxCpcBidMicros which causes the APi to return an error.

Or does this method only support manual_cpc?

No, the GenerateKeywordForecastMetrics method supports manual_CPC, maximize_conversions_bidding_strategy and also maximize_clicks_bidding_strategy.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-21 14:03:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01swDn0:ref" (ADR-00319582)



Message has been deleted

st...@adcom.fr

unread,
Jul 21, 2025, 10:20:34 AM7/21/25
to Google Ads API and AdWords API Forum
Thank you !
Reply all
Reply to author
Forward
0 new messages