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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v24/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:



1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/google/ads/google_ads/v24/services/reach_plan_service/client.rb', line 1031

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)


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

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)


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

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)


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

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)


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

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)


1028
1029
1030
# File 'lib/google/ads/google_ads/v24/services/reach_plan_service/client.rb', line 1028

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)


1023
1024
1025
# File 'lib/google/ads/google_ads/v24/services/reach_plan_service/client.rb', line 1023

def list_plannable_user_lists
  @list_plannable_user_lists
end