GenerateKeywordForecastMetricsRequest

  • The GenerateKeywordForecastMetrics request message is used for generating keyword forecast metrics.

  • The request requires a customer_id, a campaign to forecast, and optionally a forecast_period and currency_code.

  • The forecast_period must be in the future and within one year, defaulting to next Sunday to the following Saturday if not set.

  • The currency_code can be set if a different currency than the customer's account currency is needed.

Request message for [KeywordPlanIdeaService.GenerateKeywordForecastMetrics].

Fields

customer_id

string

The ID of the customer.

forecast_period

DateRange

The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.

campaign

CampaignToForecast

Required. The campaign used in the forecast.

currency_code

string

The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.