Class: Google::Ads::GoogleAds::V11::Services::ReachPlanService::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb

Overview

Configuration RPC class for the ReachPlanService API.

Includes fields providing the configuration for each RPC in this service. Each configuration object is of type ‘Gapic::Config::Method` and includes the following configuration fields:

*  `timeout` (*type:* `Numeric`) - The call timeout in seconds
*  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
*  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
   include the following keys:
    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
    *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
       trigger a retry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_rpcs = nil) {|_self| ... } ⇒ Rpcs

Returns a new instance of Rpcs.

Yields:

  • (_self)

Yield Parameters:



738
739
740
741
742
743
744
745
746
747
748
749
# File 'lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb', line 738

def initialize parent_rpcs = nil
  list_plannable_locations_config = parent_rpcs.list_plannable_locations if parent_rpcs.respond_to? :list_plannable_locations
  @list_plannable_locations = ::Gapic::Config::Method.new list_plannable_locations_config
  list_plannable_products_config = parent_rpcs.list_plannable_products if parent_rpcs.respond_to? :list_plannable_products
  @list_plannable_products = ::Gapic::Config::Method.new list_plannable_products_config
  generate_product_mix_ideas_config = parent_rpcs.generate_product_mix_ideas if parent_rpcs.respond_to? :generate_product_mix_ideas
  @generate_product_mix_ideas = ::Gapic::Config::Method.new generate_product_mix_ideas_config
  generate_reach_forecast_config = parent_rpcs.generate_reach_forecast if parent_rpcs.respond_to? :generate_reach_forecast
  @generate_reach_forecast = ::Gapic::Config::Method.new generate_reach_forecast_config

  yield self if block_given?
end

Instance Attribute Details

#generate_product_mix_ideas::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘generate_product_mix_ideas`

Returns:

  • (::Gapic::Config::Method)


730
731
732
# File 'lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb', line 730

def generate_product_mix_ideas
  @generate_product_mix_ideas
end

#generate_reach_forecast::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘generate_reach_forecast`

Returns:

  • (::Gapic::Config::Method)


735
736
737
# File 'lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb', line 735

def generate_reach_forecast
  @generate_reach_forecast
end

#list_plannable_locations::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘list_plannable_locations`

Returns:

  • (::Gapic::Config::Method)


720
721
722
# File 'lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb', line 720

def list_plannable_locations
  @list_plannable_locations
end

#list_plannable_products::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘list_plannable_products`

Returns:

  • (::Gapic::Config::Method)


725
726
727
# File 'lib/google/ads/google_ads/v11/services/reach_plan_service/client.rb', line 725

def list_plannable_products
  @list_plannable_products
end