Exemple #1
0
 public virtual stt::Task <GenerateKeywordIdeaResponse> GenerateKeywordIdeasAsync(
     string customerId,
     StringValue language,
     scg::IEnumerable <string> geoTargetConstants,
     gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork,
     gaxgrpc::CallSettings callSettings = null) => GenerateKeywordIdeasAsync(
     customerId, language.Value, geoTargetConstants, keywordPlanNetwork,
     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="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,
     string language,
     scg::IEnumerable <string> geoTargetConstants,
     gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork,
     st::CancellationToken cancellationToken) => GenerateKeywordIdeasAsync(
     customerId,
     language,
     geoTargetConstants,
     keywordPlanNetwork,
     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 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,
     string language,
     scg::IEnumerable <string> geoTargetConstants,
     gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork,
     gaxgrpc::CallSettings callSettings = null) => GenerateKeywordIdeas(
     new GenerateKeywordIdeasRequest
 {
     CustomerId         = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)),
     Language           = gax::GaxPreconditions.CheckNotNullOrEmpty(language, nameof(language)),
     GeoTargetConstants = { gax::GaxPreconditions.CheckNotNull(geoTargetConstants, nameof(geoTargetConstants)) },
     KeywordPlanNetwork = keywordPlanNetwork,
 },
     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);