googleads / googleads/google-ads-ruby

uninitialized constant Gapic::ServiceStub::ChannelPool

Open
#480 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
Ruby
Stars
83
Forks
72
Avg merge
16m
Merged PRs (30d)
1

Description

Describe the bug:
Getting uninitialized constant Gapic::ServiceStub::ChannelPool when running the get_account_hierarchy example

https://github.com/googleads/google-ads-ruby/blob/51e655cebb578cb5a9bf60ccc6732e2ac652c9ba/examples/account_management/get_account_hierarchy.rb#L45
Steps to Reproduce:

  1. clone this repo locally
  2. configure ~/google_ads_config.rb with the required secrets
  3. run ruby get_account_hierarchy.rb

Expected behavior:
Did not expect uninitialized constant Gapic::ServiceStub::ChannelPool

Client library version and API version:
Client library version: 25.0.1
Google Ads API version: V15

Request/Response Logs:
➜ script git:(develop) ✗ ruby get_account_hierarchy.rb

No manager customer ID is specified. The example will print the hierarchies of all accessible customer IDs:
/Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/v15/services/customer_service/client.rb:570:in `channel_pool': uninitialized constant Gapic::ServiceStub::ChannelPool (NameError)
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/v15/services/customer_service/client.rb:141:in `initialize'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/factories/v15/services.rb:1420:in `new'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/factories/v15/services.rb:1420:in `customer'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/3.0.0/delegate.rb:87:in `method_missing'
        from get_account_hierarchy.rb:145:in `get_account_hierarchy'
        from get_account_hierarchy.rb:185:in `<main>'

Anything else we should know about your project / environment:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with examples/account_management/get_account_hierarchy.rb using the documented configuration. Start at the channel_pool entry point in the generated customer_service/client.rb around line 570 and inspect why Gapic::ServiceStub::ChannelPool is unavailable. Done means the example initializes CustomerService without the NameError.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.