Hi,

I am new to the AdWords API and I am using rails and will use the Client 
Library provided. I am trying to integrate it with the Rails framework and 
I've setup my adwords_api.yml in the config file and tried to require this 
in my controller but I keep getting:

cannot load such file -- 
/Users/Richard/Desktop/wdi_13/projects/final_project/clean_project/adwords_app/config/adwords_api

my controller code is:

require "#{Rails.root}/config/adwords_api"

class ReportsController < ApplicationController
  
  def index
    adwords = AdwordsApi::Api.new
    token = adwords.authorize()
  end


end

I've looked into it and i thought it may be something to do with the path, 
which is why I have the Rails.root there but the path with this is 
definitely correct.

Any help would be greatly appreciated!

Thanks,
Rick
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c4dad5ce-4a6a-44ca-8bc2-e4dc6e94aeb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to