• 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 });

    }