Using go-genai with googleapis.com

Go integration

✓ Official SDK
Install
go get github.com/googleapis/go-genai
Quick start
import "go-genai"

// Initialize client
client := go-genai.NewClient("YOUR_ACCESS_TOKEN")
Generate an AdSense report based on the report request sent in the query para…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsensehost/v4.1/reports
List hosted accounts associated with this AdSense account by ad client id.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsensehost/v4.1/accounts
List all host ad clients in this AdSense account.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsensehost/v4.1/adclients
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:adsensehost
At a glance
Language Go
Endpoints26
Base URLhttps://www.googleapis.com/adsensehost/v4.1
✓ Official