jburkhardt / RAdwords

Loading Google Adwords Data into R
https://github.com/banboo-data/r4googleads
Other
99 stars 36 forks source link

google_auth issues #57

Closed migfern closed 7 years ago

migfern commented 8 years ago

Hi Johannes,

Relatively new to R language in general and have just come across a road block at this line data <- getData(clientCustomerId='xxx-xxx-xxxx', google_auth=google_auth ,statement=body) "google_auth=google_auth" <---Should i be placing an access token here? What data should i be placing within this line of code?

Sorry for the noobish question, appreciate it!

migfern commented 8 years ago

Trying 74.125.23.139...

Thats what i'm left with in my console, not sure where i've gone wrong here. Any support would be great, thanks guys!!

jburkhardt commented 8 years ago

Hi @migfern

google_authis a R object which you create with the doAuth() function. This object contains all your credential information and you use this object in the getData() function.

library(RAdwords)
google_auth <- doAuth()

I am working on a detailed documentation with a stey by step instruction: https://github.com/rstats-lab/radwords-docs/blob/master/docs/auth.md

I hope this will help you! Let me know if you succeed. Kind regards, Johannes

migfern commented 8 years ago

Thanks for the reply Jo, appreciated!!

Makes sense that we are storing our information in the doAuth() function. For some reason my request is returning a 400 status code? I've tried diagnosing the issue for the last couple of days but can't seem to find a resolution.

Is there anything you can see in my 'second' post above that rings alarm bells? I've input all my authentication details correctly, can't seem to find the issue.

Your time's appreciated! Thank you!

jburkhardt commented 8 years ago

Unfortunately the prompt output from your previous post does not help much. Do you fulill the following requirements? https://github.com/rstats-lab/radwords-docs/blob/master/docs/requirements.md How does the google_auth object look like after running google_auth <- doAuth()?

migfern commented 7 years ago

Hey Jo,

I'm still have some issues accessing Adwords through the API. Below are the variables my google_Auth object contains. If you need more info, let me know!

My Google Auth object contains four variables.

  1. Client ID
  2. Client secret
  3. auth.developerToken
  4. c.token

access

  1. access_token
  2. expires_in
  3. refresh_token
  4. token_type
  5. timeStamp
jburkhardt commented 7 years ago

@migfern With the information you provide it is really difficult to help you since I cannot see at which step in the auth, query, load data - process your script fails. At least it looks like the authentication with the Adwords API is successfull.

I published a new documentation. Please read and follow the instruction carefully and you should be fine: http://jburkhardt.github.io/RAdwords/ You will find all the information to get started!

I suppose your are not far from your goal and there is a minor mistake in your script or anything alike. I suspect you use the AdWords MCC Id instead ot the Adwords Account ID within getData.

As there is no bug with the code of the package I will close this issue by now. Please let me know if you succeed!