List Snapchat ad accounts in your organization
snapchat-ads.accountsList the Snapchat ad accounts in a business organization
- Price
- freeZum Listenpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.accountsBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameter
returns each ad account's id, name, currency, timezone and funding sources. This is treg's connection resource picker. All ids across this API are UUIDs, not numbers
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
organization_id | Zeichenkette | Erforderlich | UUID from /me/organizations | 8adc3db7-8148-4fbf-999c-8d2266369d74 |
| Abfrageparameter | ||||
limit | Ganzzahl | Optional | 50 | |
cursor | Zeichenkette | Optional | paging.next_link carries the cursor for the next page | |
- Pfadparameter
organization_idZeichenketteErforderlichUUID from /me/organizations
Beispiel:
8adc3db7-8148-4fbf-999c-8d2266369d74- Abfrageparameter
limitGanzzahlOptionalBeispiel:
50cursorZeichenketteOptionalpaging.next_link carries the cursor for the next page
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.accounts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.accounts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/snapchat-ads.accounts", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist in der Beta; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.