Lists the Google Ads accounts the connected Google account can open, with name, currency, time zone, status and whether each is a manager account.
curl -X POST "https://api.primaryapi.com/v1/run/google-ads.accounts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"total": 1,
"nextCursor": null,
"accounts": [
{
"name": "Example Store",
"manager": false,
"testAccount": false,
"resourceName": "customers/1234567890", …
}
]
}
},
"credits": 1
}Input and output
3 fields
9 fields
Good to know
Runs as your connected Google account. Needs the Google Ads capability.
Lists only accounts the Google account can open directly. Client accounts reached through a manager account are queried by passing loginCustomerId (the manager’s id) to the other google-ads APIs.
A Google account with no Google Ads access is a miss with reason no_ads_account.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.