c# - Service account Authentication in google analytics api -
i use google analytics api .net . use these sample codes here. when use oauth 2.0 , have no problem , every thing works . when want use service account authentication , null here ( x null)
var x = daimtoanaltyicsreportinghelper.get(service, "78110423", "10daysago", "today", "ga:sessions", options);
what missed ?
(i created p12 file , have service account email )
the solution : needed add service account email (which has been made in google developers consol) user management in google analytics panel , give permission .
Comments
Post a Comment