Re: Ruby Report Utils 'Missing Client Information' error

2013-12-09 Thread Matthew Ledom
I’m not using the adwords rails gem for this. I basically wrote my own method to handle reports setting all the header info myself. -- Matthew Ledom VP of Engineering BrightWhistle Inc. 404.964.8061 http://brightwhistle.com (http://www.brightwhistle.com/) @brightwhistle (http

Submitting for approval problem

2013-08-18 Thread Matthew Ledom
Has anyone tried to submit for API approval lately? I'm using the url from the post about getting approval: https://services.google.com/fb/forms/newtoken2/ I have filled out all of the required fields and when I click the submit button I get the red error highlighting the Upload screenshot...

Invalid token on staging env

2013-07-25 Thread Matthew Ledom
I have created our platform on my localhost. I have since deploy the code to staging. I'm using the same client id and secret from the api console. I have added the server name to the list. I went through the oauth redirect and have obtained a token and have checked it with the validation

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-25 Thread Matthew Ledom
I deployed my working setup to a staging environment and now I get the OAUTH_TOKEN_INVALID issue. I have checked the tokeninfo service and it says its a valid token. I pasted the output below. What are some reasons for invalid tokens? { - issued_to: 106...96.apps.googleusercontent.com,

Change sitelinks?

2013-07-23 Thread Matthew Ledom
How do I switch a campaign to use a different sitelink like I can do from the adwords UI? I'm trying to set the CampaignFeed to an existing feed but the status of the CampaignFeed is DELETED. The UI lets me switch to this old feed and choose the feed items. When I try to do it from the api I

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-22 Thread Matthew Ledom
I was finally able to get it working. I had to merge my stored token values with the loaded config params from the adwords_api.yml file. Trying to figure out how to set the token after the api object was created was causing issues. I used the setup_oauth2.rb example to write the values to my

Re: OAUTH_TOKEN_INVALID ruby client

2013-07-22 Thread Matthew Ledom
in more detail. Best, - Takeshi, AdWords API Team On Saturday, July 20, 2013 4:01:13 AM UTC+9, Matthew Ledom wrote: I keep receiving this error when I try to use a service. In this instance I'm use the campaign service. I had everything working with ClientLogin and found that Reports

Re: Ruby and OAuth

2013-07-19 Thread Matthew Ledom
What is the token.secret? Is that the same thing as the client secret? On Wednesday, May 30, 2012 10:51:34 AM UTC-4, Danial Klimkin wrote: Hello Thomas, You can request an authorization and get token this way (in the callback): token = api.authorize({:oauth_request_token = request_token,

Re: Sandbox, OAuth 2.0

2013-07-19 Thread Matthew Ledom
Can test accounts be used with OAuth2? On Wednesday, June 5, 2013 4:41:15 AM UTC-4, Danial Klimkin wrote: Hello, The sandbox was replaced with Test Accounts. See: https://developers.google.com/adwords/api/docs/test-accounts -Danial, AdWords API Team. On Monday, June 3, 2013 4:18:59

Re: Oauth2 jwt ruby issue

2013-07-19 Thread Matthew Ledom
Did you ever answer the question about using the refresh token in: token = { :refresh_token = '' } api.authorize({:oauth2_token = token}) The sample app does not show how to use that. I have setup the sample app and it works great. In my application I can't have the user logging in all the

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-19 Thread Matthew Ledom
I assume Temla that you have since got your code to work. Did you ever figure out what the cause was? I'm experiencing the same issue now. I have updated the gem to the latest. When I authorize I get a new token and we as some other info but when I got to use the token I get the same error:

OAUTH_TOKEN_INVALID ruby client

2013-07-19 Thread Matthew Ledom
I keep receiving this error when I try to use a service. In this instance I'm use the campaign service. I had everything working with ClientLogin and found that Reports are only supported with OAUTH2 so I'm trying to get that implemented. I have setup my app to retrieve a offline token via the

Re: [0-6495000001321] Re: Ruby Report Utils 'Missing Client Information' error

2013-07-10 Thread Matthew Ledom
%2FnumberResults%3E%3C%2Fpaging%3E%3C%2Fselector%3E%3CreportName%3Etest%3C%2FreportName%3E%3CreportType%3ECRITERIA_PERFORMANCE_REPORT%3C%2FreportType%3E%3CdateRangeType%3ELAST_30_DAYS%3C%2FdateRangeType%3E%3CdownloadFormat%3ECSV%3C%2FdownloadFormat%3E%3C%2FreportDefinition%3E -- Matthew Ledom Software

Re: [0-6495000001321] Re: Ruby Report Utils 'Missing Client Information' error

2013-07-10 Thread Matthew Ledom
, Clicks, Cost], :ordering=[], :predicates=[] }, :report_name=test, :report_type=CRITERIA_PERFORMANCE_REPORT, :download_format=CSV, :date_range_type=LAST_30_DAYS } -- Matthew Ledom Software Engineering Manager BrightWhistle Inc. 404.964.8061 http://brightwhistle.com (http

Re: Ruby Report Utils 'Missing Client Information' error

2013-07-09 Thread Matthew Ledom
, Matthew Ledom wrote: I'm sending the clientCustomerId as a string xxx-xxx- and passing it in the download_report and download_report_as_file methods. I also have the id set in the headers of the request as clientCustomerId=xxx-xxx-. On Monday, July 8, 2013 4:42:43 PM UTC-4

Ruby Report Utils 'Missing Client Information' error

2013-07-08 Thread Matthew Ledom
I'm trying to download the CRITERIA_PERFORMANCE_REPORT for all the fields that are allowed. I keep receiving the following error: reportDownloadErrorApiErrortypeReportDownloadError.INVALID_PARAMETER/typetriggerMissing client information/triggerfieldPath/fieldPath/ApiError/reportDownloadError

Re: Ruby Report Utils 'Missing Client Information' error

2013-07-08 Thread Matthew Ledom
Matthew, This error means you are not sending the clientCustomerId correctly. How do you pass the account ID to the library? -Danial, AdWords API Team. On Monday, July 8, 2013 10:47:23 PM UTC+4, Matthew Ledom wrote: I'm trying to download the CRITERIA_PERFORMANCE_REPORT for all the fields

Feed Service api requirement

2013-06-26 Thread Matthew Ledom
Does anyone know which parts of the feed services feature are required for api approval? It seems that as soon as I click the sitelinks extension in AdWords the system automatically creates a feed for me. Do I just need to be able to add new SiteLinks (FeedItems) for approval or do I need to be