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")
List the alerts for this AdSense account.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsense/v1.4/alerts
Generate an AdSense report based on the report request sent in the query para…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsense/v1.4/reports
List all accounts available to this AdSense account.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://www.googleapis.com/adsense/v1.4/accounts
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:adsense

At a glance

Language Go
Endpoints39
Base URLhttps://www.googleapis.com/adsense/v1.4
✓ Official