/// <summary> /// Returns GeoTargetConstant suggestions by location name or by resource name. /// </summary> /// <param name="locale"> /// If possible, returned geo targets are translated using this locale. If not, /// en is used by default. This is also used as a hint for returned geo /// targets. /// </param> /// <param name="countryCode"> /// Returned geo targets are restricted to this country code. /// </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 <SuggestGeoTargetConstantsResponse> SuggestGeoTargetConstantsAsync( pbwkt::StringValue locale, pbwkt::StringValue countryCode, st::CancellationToken cancellationToken) => SuggestGeoTargetConstantsAsync( locale, countryCode, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns a list of keyword ideas. /// </summary> /// <param name="customerId"> /// The ID of the customer with the recommendation. /// </param> /// <param name="language"> /// The resource name of the language to target. /// Required /// </param> /// <param name="geoTargetConstants"> /// The resource names of the location to target. /// Max 10 /// </param> /// <param name="keywordPlanNetwork"> /// Targeting network. /// </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 <GenerateKeywordIdeaResponse> GenerateKeywordIdeasAsync( string customerId, pbwkt::StringValue language, scg::IEnumerable <string> geoTargetConstants, // TODO(liseno): Implicit type cast from pbwkt::StringValue to String failed gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork, st::CancellationToken cancellationToken) => GenerateKeywordIdeasAsync( customerId, language, geoTargetConstants, keywordPlanNetwork, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns GeoTargetConstant suggestions by location name or by resource name. /// </summary> /// <param name="locale"> /// If possible, returned geo targets are translated using this locale. If not, /// en is used by default. This is also used as a hint for returned geo /// targets. /// </param> /// <param name="countryCode"> /// Returned geo targets are restricted to this country code. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual SuggestGeoTargetConstantsResponse SuggestGeoTargetConstants( pbwkt::StringValue locale, pbwkt::StringValue countryCode, gaxgrpc::CallSettings callSettings = null) => SuggestGeoTargetConstants( new SuggestGeoTargetConstantsRequest { Locale = gax::GaxPreconditions.CheckNotNull(locale, nameof(locale)).Value, // TODO(liseno): Implicit type cast from StringValue to String failed, CountryCode = gax::GaxPreconditions.CheckNotNull(countryCode, nameof(countryCode)).Value, // TODO(liseno): Implicit type cast from StringValue to String failed, }, callSettings);
/// <summary> /// Returns a list of keyword ideas. /// </summary> /// <param name="customerId"> /// The ID of the customer with the recommendation. /// </param> /// <param name="language"> /// The resource name of the language to target. /// Required /// </param> /// <param name="geoTargetConstants"> /// The resource names of the location to target. /// Max 10 /// </param> /// <param name="keywordPlanNetwork"> /// Targeting network. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual GenerateKeywordIdeaResponse GenerateKeywordIdeas( string customerId, pbwkt::StringValue language, scg::IEnumerable <string> geoTargetConstants, // TODO(liseno): Implicit type cast from pbwkt::StringValue to String failed gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork, gaxgrpc::CallSettings callSettings = null) => GenerateKeywordIdeas( new GenerateKeywordIdeasRequest { CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), Language = gax::GaxPreconditions.CheckNotNull(language, nameof(language)).Value, // TODO(liseno): Implicit type cast from StringValue to String failed GeoTargetConstants = { gax::GaxPreconditions.CheckNotNull(geoTargetConstants, nameof(geoTargetConstants)) }, KeywordPlanNetwork = keywordPlanNetwork, }, callSettings);