Googleapis Adsense
Google AdSense API is a service for managing AdSense accounts and retrieving reports about website advertising revenue and performance.
- Base URL:
https://www.googleapis.com/adsense/v1.4 - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
adsense_accounts_list— GET /accounts — List all accounts available to this AdSense account.adsense_accounts_get— GET /accounts/{accountId} — Get information about the selected AdSense account.adsense_accounts_adclients_list— GET /accounts/{accountId}/adclients — List all ad clients in the specified account.adsense_accounts_adclients_getadcode— GET /accounts/{accountId}/adclients/{adClientId}/adcode — Get Auto ad code for a given ad client.adsense_accounts_adunits_list— GET /accounts/{accountId}/adclients/{adClientId}/adunits — List all ad units in the specified ad client for the specified account.adsense_accounts_adunits_get— GET /accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId} — Gets the specified ad unit in the specified ad client for the specified account.
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: adsense_accounts_list
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: accounts_adclients_adunits_get, accounts_adclients_adunits_getadcode, accounts_adclients_customchannels_get, accounts_adclients_get, accounts_adclients_getadcode, accounts_adclients_urlchannels_get, accounts_get, accounts_list, accounts_policyissues_get, accounts_reports_getsaved, accounts_sites_get, accounts_sites_list |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |
name |
string | no | — | Path parameter for the operations whose URL contains {name}. |
parent |
string | no | — | Path parameter for the operations whose URL contains {parent}. |