Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Google Analytics SQL Import Expand / Collapse
Author
Message
Posted Monday, August 26, 2013 1:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, September 20, 2013 1:48 PM
Points: 4, Visits: 30
ram_model (8/26/2013)
farzad.panahi (8/19/2013)
I think with some minor changes to the source code it can be made to work with YouTube analytics api.

Hi Farzad,

Can you let me know what changes need to be made to make it work for YouTube Analytics?

Thanks in advance

-Ram


You need to install YouTube Analytics nuget package https://www.nuget.org/packages/Google.Apis.youtubeAnalytics.v1 for the C# solution.

Then by reading the api or taking a look at samples like https://code.google.com/p/youtube-api-samples/source/browse/samples/dotnet/my_uploads.cs modify https://github.com/farzadpanahi/GoogleAnalyticsDataProcessingExtension/blob/master/src/GoogleAnalyticsDataProcessingExtension/GoogleAnalyticsDataProcessingExtension/GoogleAnalytics/GAService.cs file to use YouTubeService instead of AnalyticsService.

You can start modifying this method:
private AnalyticsService GetAnalyticsService(IAuthenticator authenticator)
{
return new AnalyticsService(new BaseClientService.Initializer() { Authenticator = authenticator, GZipEnabled = true });
}


Post #1488488
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse