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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v25/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.
    • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
    • :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:



1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 1022

def initialize parent_rpcs = nil
  generate_conversion_rates_config = parent_rpcs.generate_conversion_rates if parent_rpcs.respond_to? :generate_conversion_rates
  @generate_conversion_rates = ::Gapic::Config::Method.new generate_conversion_rates_config
  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_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
  list_plannable_user_lists_config = parent_rpcs.list_plannable_user_lists if parent_rpcs.respond_to? :list_plannable_user_lists
  @list_plannable_user_lists = ::Gapic::Config::Method.new list_plannable_user_lists_config
  list_plannable_user_interests_config = parent_rpcs.list_plannable_user_interests if parent_rpcs.respond_to? :list_plannable_user_interests
  @list_plannable_user_interests = ::Gapic::Config::Method.new list_plannable_user_interests_config

  yield self if block_given?
end

Instance Attribute Details

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

RPC-specific configuration for generate_conversion_rates

Returns:

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


994
995
996
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 994

def generate_conversion_rates
  @generate_conversion_rates
end

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

RPC-specific configuration for generate_reach_forecast

Returns:

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


1009
1010
1011
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 1009

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)


999
1000
1001
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 999

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)


1004
1005
1006
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 1004

def list_plannable_products
  @list_plannable_products
end

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

RPC-specific configuration for list_plannable_user_interests

Returns:

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


1019
1020
1021
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 1019

def list_plannable_user_interests
  @list_plannable_user_interests
end

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

RPC-specific configuration for list_plannable_user_lists

Returns:

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


1014
1015
1016
# File 'lib/google/ads/google_ads/v25/services/reach_plan_service/client.rb', line 1014

def list_plannable_user_lists
  @list_plannable_user_lists
end