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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -