Stephen-McDaniel / r-google-analytics

This repository is an export of the final version from the retired Google Code system (code.google.com/p/r-google-analytics).
0 stars 0 forks source link

404 Not Found for ga$GetProfileData() #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. library("RCurl")
2. library("XML")
3. source("QueryBuilder.R")
4. source("RGoogleAnalytics.R")
5. ga=RGoogleAnalytics()
6. Get SSL certificate: 
6.1: download.file(url="http://curl.haxx.se/ca/cacert.pem", 
destfile="cacert.pem")
6.2: curl <- getCurlHandle()
> options(RCurlOptions = list(capath = system.file("CurlSSL", "cacert.pem", 
package = "RCurl"), ssl.verifypeer = FALSE))
> curlSetOpt(.opts = list(proxy = "proxyserver:port"), curl = curl)

7. ga <- RGoogleAnalytics()
8.ga$SetCredentials("user_name", "password")
9.profiles <- ga$GetProfileData()

What is the expected output? What do you see instead?
Expect: Get an object "profiles" with a list of profile

What I see instead:
Error in ga$GetProfileData() : 404 Not Found 

What version of the product are you using? On what operating system?
x86_64-pc-mingw32/x64 (64-bit)

Please provide any additional information below.

Original issue reported on code.google.com by gary7...@gmail.com on 24 Oct 2012 at 6:54

GoogleCodeExporter commented 8 years ago
I just noticed the same problem

Original comment by btibe...@gmail.com on 24 Oct 2012 at 7:21

GoogleCodeExporter commented 8 years ago
Any resolution for this?

Original comment by thespamh...@gmail.com on 6 Nov 2012 at 6:21

GoogleCodeExporter commented 8 years ago
i have same trouble.  what should be done to fix this ? 

Original comment by KNo....@gmail.com on 12 Nov 2012 at 6:19

GoogleCodeExporter commented 8 years ago
I checked the source code of the Rgoogleanalytics package and found out that 
the url used to get the profile data list is offline. see --> 
getURL("https://www.google.com/analytics/feeds/accounts/default"). Instead a 
new url is used by google when implementing management API v3. See this post: 
http://developers.google.com/analytics/devguides/config/mgmt/v2/. Might work 
when changing this old url to the new one...

Cheers, Menno

Original comment by adwo...@elmar.nl on 26 Nov 2012 at 6:15

GoogleCodeExporter commented 8 years ago
This issue has been fixed with the new v1.2 release

Original comment by michael....@gmail.com on 17 Feb 2013 at 4:55