/// <summary> /// Returns the requested Keyword Plan historical metrics. /// </summary> /// <param name="keywordPlan"> /// Required. The resource name of the keyword plan of which historical metrics are /// requested. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <GenerateHistoricalMetricsResponse> GenerateHistoricalMetricsAsync(gagvr::KeywordPlanName keywordPlan, st::CancellationToken cancellationToken) => GenerateHistoricalMetricsAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns the requested Keyword Plan historical metrics. /// </summary> /// <param name="keywordPlan"> /// Required. The resource name of the keyword plan of which historical metrics are /// requested. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <GenerateHistoricalMetricsResponse> GenerateHistoricalMetricsAsync(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => GenerateHistoricalMetricsAsync(new GenerateHistoricalMetricsRequest { KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), }, callSettings);
/// <summary> /// Returns the requested plan in full detail. /// </summary> /// <param name="resourceName"> /// Required. The resource name of the plan to fetch. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <gagvr::KeywordPlan> GetKeywordPlanAsync(gagvr::KeywordPlanName resourceName, st::CancellationToken cancellationToken) => GetKeywordPlanAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns the requested Keyword Plan forecasts. /// </summary> /// <param name="keywordPlan"> /// Required. The resource name of the keyword plan to be forecasted. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual GenerateForecastMetricsResponse GenerateForecastMetrics(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => GenerateForecastMetrics(new GenerateForecastMetricsRequest { KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), }, callSettings);
/// <summary> /// Returns the requested plan in full detail. /// </summary> /// <param name="resourceName"> /// Required. The resource name of the plan to fetch. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <gagvr::KeywordPlan> GetKeywordPlanAsync(gagvr::KeywordPlanName resourceName, gaxgrpc::CallSettings callSettings = null) => GetKeywordPlanAsync(new GetKeywordPlanRequest { ResourceNameAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), }, callSettings);