net3000.google
1.0.1
dotnet add package net3000.google --version 1.0.1
NuGet\Install-Package net3000.google -Version 1.0.1
<PackageReference Include="net3000.google" Version="1.0.1" />
<PackageVersion Include="net3000.google" Version="1.0.1" />
<PackageReference Include="net3000.google" />
paket add net3000.google --version 1.0.1
#r "nuget: net3000.google, 1.0.1"
#:package net3000.google@1.0.1
#addin nuget:?package=net3000.google&version=1.0.1
#tool nuget:?package=net3000.google&version=1.0.1
Net3000.Google
Overview
The Net3000.Google library provides comprehensive integration with various Google APIs for Net3000 solutions. This library enables Google Analytics data retrieval, Search Console integration, YouTube API access, Google Maps functionality, and other Google services.
Features
- Google Analytics: Retrieve analytics data and statistics
- Search Console: Access search performance data
- YouTube Integration: Manage YouTube content and analytics
- Google Maps: Places API integration and location services
- Authentication: OAuth2 and service account authentication
- Data Processing: Comprehensive data models and response handling
Installation
dotnet add package net3000.google
Dependencies
net3000.common(v9.0.11)Google.Api.CommonProtos(v2.17.0)Google.Api.Gax(v4.11.1)Google.Api.Gax.Grpc(v4.11.1)Google.Apis(v1.71.0)Google.Apis.Auth(v1.71.0)Google.Apis.Core(v1.71.0)Google.Apis.SearchConsole.v1(v1.70.0.3847)Google.Analytics.Data.V1Beta(v2.0.0-beta09)Google.Apis.MapsPlaces.v1(v1.70.0.3874)Google.Apis.YouTube.v3(v1.70.0.3847)Google.Geo.Type(v1.2.0)Google.Maps.Places.V1(v1.0.0-beta08)Microsoft.Extensions.Configuration(v9.0.9)Selenium.WebDriver(v4.35.0)Selenium.WebDriver.ChromeDriver(v140.0.7339.18500)System.IdentityModel.Tokens.Jwt(v8.14.0)
Configuration
Add your Google API credentials to your configuration:
{
"Google": {
"ClientId": "your-google-client-id",
"ClientSecret": "your-google-client-secret",
"ApiKey": "your-google-api-key",
"AnalyticsPropertyId": "your-analytics-property-id",
"SearchConsoleSiteUrl": "your-site-url"
}
}
Usage
Basic Setup
using net3000.google;
// Initialize Google Analytics service
var analyticsService = new Analytics(configuration);
// Initialize Search Console service
var searchConsoleService = new SearchConsole(configuration);
// Initialize YouTube service
var youtubeService = new YouTube(configuration);
// Initialize Places service
var placesService = new Places(configuration);
Google Analytics
// Get analytics data
var analyticsData = await analyticsService.GetAnalyticsData(
propertyId: "your-property-id",
startDate: "2024-01-01",
endDate: "2024-01-31"
);
Search Console
// Get search performance data
var searchData = await searchConsoleService.GetSearchPerformance(
siteUrl: "https://example.com",
startDate: "2024-01-01",
endDate: "2024-01-31"
);
YouTube Integration
// Get YouTube channel data
var channelData = await youtubeService.GetChannelData("channel-id");
// Get video analytics
var videoAnalytics = await youtubeService.GetVideoAnalytics("video-id");
Google Maps Places
// Search for places
var places = await placesService.SearchPlaces(
query: "restaurants near me",
location: "lat,lng"
);
// Get place details
var placeDetails = await placesService.GetPlaceDetails("place-id");
API Reference
Analytics Class
Google Analytics data retrieval and processing.
Methods
GetAnalyticsData()- Retrieve analytics dataGetRealTimeData()- Get real-time analyticsGetAudienceData()- Retrieve audience information
SearchConsole Class
Google Search Console integration for search performance data.
Methods
GetSearchPerformance()- Get search performance metricsGetSiteMaps()- Retrieve sitemap informationGetUrlInspection()- Inspect URL indexing status
YouTube Class
YouTube API integration for video and channel management.
Methods
GetChannelData()- Retrieve channel informationGetVideoAnalytics()- Get video performance dataGetPlaylistData()- Retrieve playlist information
Places Class
Google Maps Places API integration for location services.
Methods
SearchPlaces()- Search for placesGetPlaceDetails()- Get detailed place informationGetPlacePhotos()- Retrieve place photos
Models
AnalyticsStats- Analytics data structureSearchConsoleStats- Search Console data structureAddressComponent- Address component modelLatLng- Latitude/longitude coordinatesPlacesResult- Places search resultPlaceReview- Place review dataUserInfo- User information model
Authentication
The library supports multiple authentication methods:
- OAuth2: For user-specific data access
- Service Account: For server-to-server authentication
- API Key: For public data access (Places API, etc.)
Error Handling
Comprehensive error handling with detailed error messages from Google APIs. All methods include proper exception handling and return standardized response objects.
Rate Limiting
The library respects Google API rate limits and includes built-in retry logic and quota management.
Testing
Use Google's test environment for development:
- Create test projects in Google Cloud Console
- Use test API keys and credentials
- Test with limited data sets
Security Considerations
- Store Google credentials securely in configuration
- Use environment variables for production deployments
- Implement proper OAuth2 flow for user authentication
- Monitor API usage and quotas
License
This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.
Support
For support and questions, contact the Net3000 development team or visit net3000.ca.
Changelog
v1.0.0
- Initial release with comprehensive Google APIs integration
- Analytics, Search Console, YouTube, and Maps functionality
- OAuth2 and service account authentication support
- Comprehensive data models and error handling
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Google.Analytics.Data.V1Beta (>= 2.0.0-beta09)
- Google.Api.CommonProtos (>= 2.17.0)
- Google.Api.Gax (>= 4.11.1)
- Google.Api.Gax.Grpc (>= 4.11.1)
- Google.Apis (>= 1.71.0)
- Google.Apis.Auth (>= 1.71.0)
- Google.Apis.Core (>= 1.71.0)
- Google.Apis.MapsPlaces.v1 (>= 1.70.0.3874)
- Google.Apis.SearchConsole.v1 (>= 1.70.0.3847)
- Google.Apis.YouTube.v3 (>= 1.70.0.3847)
- Google.Geo.Type (>= 1.2.0)
- Google.Maps.Places.V1 (>= 1.0.0-beta08)
- Microsoft.Extensions.Configuration (>= 9.0.9)
- net3000.common (>= 9.0.11)
- Selenium.WebDriver (>= 4.35.0)
- Selenium.WebDriver.ChromeDriver (>= 140.0.7339.18500)
- System.IdentityModel.Tokens.Jwt (>= 8.14.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on net3000.google:
| Package | Downloads |
|---|---|
|
Net3000.Content
CMS tooling for Net3000 solutions. Provides form-processing workflows, content retrieval services, menu utilities, and video helpers that work together with the Net3000 content database. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of Net3000 Google library with comprehensive Google APIs integration for analytics, content, and location services.