Environment 'PRODUCTION' does not support version 'v201806' Adwords on rails

70 views
Skip to first unread message

jcharles...@gmail.com

unread,
Jul 25, 2018, 6:08:13 PM7/25/18
to AdWords API and Google Ads API Forum
Hello, 

I'm trying to get started making my first api call with the  adwords_on_rails example but I'm getting this error when I click on "list accounts" in localhost:3000

Environment 'PRODUCTION' does not support version 'v201806'

# First get the AdWords manager account ID.
customer_srv = adwords.service(:CustomerService, get_api_version())
customers = customer_srv.get_customers()
adwords.credential_handler.set_credential(
:client_customer_id, customers.first[:customer_id])

List of things I have:
- a test developer token
- a oauth2 client id
- a oauth2 client secret
- a manager account (no billing information)
- a test manager account 
- accounts under test manager account (they all show as canceled due to missing billing information. However when I try to update it says it's not possible because the account is inactive)

List of things I did:
- installed the latest version of ruby
- Filled-in the adwords_api.yml file and put it under project > config
- ran rails server and clicked on "list accounts"

Has somebody seen this issue before? I suspect I'm missing something simple.

Thanks,


Luis Xander Talag (AdWords API Team)

unread,
Jul 26, 2018, 2:45:01 AM7/26/18
to AdWords API and Google Ads API Forum
Hi,

I would suggest to update your library gem to the latest version. If the issue persist, I would then recommend for you to post your issue here as the client library owners are better equipped to assist you.

Thanks and regards,
Luis
AdWords API Team

Satyam Singh

unread,
Aug 14, 2018, 10:12:39 PM8/14/18
to AdWords API and Google Ads API Forum
Update your google-adwords-api gem to 1.3.0(latest).

Update in Gemfile:

gem 'google-adwords-api', '~> 1.3.0'

elias....@koombea.com

unread,
Aug 14, 2018, 10:12:58 PM8/14/18
to AdWords API and Google Ads API Forum
Were you able to solve this?
Reply all
Reply to author
Forward
0 new messages