To start I would like to recommend you use the Google.Apis.v3 libs. They make your life a lot easer.
You should be using Oauth2 to authenticate access not a username and password. After you have created your application in Google Apis Console You receive a clientid and a client secret these identify your application to Google. The oauth2 code looks something like this.
UserCredential credential;
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets { ClientId = "YourClientId", ClientSecret = "YourClientSecret" },
new[] { AnalyticsService.Scope.AnalyticsReadonly },
"user",
CancellationToken.None,
new FileDataStore("Drive.Auth.Store")).Result; }
The code above will ask the user if they want to allow you access to there Google Analtyics Data.
Once you have the UserCredential's you can then create the service you will use for all of your requests to the API.
AnalyticsService service = new AnalyticsService(
new BaseClientService.Initializer() {
HttpClientInitializer = credential,
ApplicationName = "Analytics API sample", });
You can find a tutorial on most of the Calls to the Google Analtyics api here
Note: If your only accessing your own data you should check out Service Accounts.