Adsense API
Overview of the Adsense endpoint and its two query modes.
Endpoint
GET /api/v1/adsenseAuthentication
Authorization: Bearer YOUR_API_KEYQuery Modes
Choose one of the following guides:
| Mode | Purpose | Guide |
|---|---|---|
domain | Query publisher IDs by domain | Adsense Domain API |
pubId | Reverse lookup domains by publisher ID | Adsense PubId API |
Validation Rules
domainandpubIdcannot be provided together- at least one of them must be provided
Common Response Shape
{
"code": "ok",
"message": "ok",
"data": {
"endpoint": "adsense",
"costCredits": 3,
"remainingCredits": 97
}
}Shared Response Fields
| Field | Description |
|---|---|
data.endpoint | Fixed value: adsense |
data.costCredits | Credits consumed by this request |
data.remainingCredits | Remaining credits after deduction |