curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/snapchat/accounts
{
"status": "success",
"adAccounts": [
{
"id": "5a0d0000-0000-4000-8000-000000000003",
"name": "Acme Ads",
"currency": "USD",
"timezone": "America/Los_Angeles",
"status": "ACTIVE"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "get ad accounts",
"status": "error",
"code": 366,
"message": "Error getting ad accounts. Please verify you have an active Snapchat ad account and have granted permission to access it. Try unlinking and relinking the platform, then try again. Contact us if the issue persists."
}
Snapchat Ads
アカウント
リンク済みの Snapchat アカウントで使える Snapchat 広告アカウントを、通貨、タイムゾーン、ステータスとともに一覧表示します。
GET
/
ads
/
snapchat
/
accounts
curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/snapchat/accounts
{
"status": "success",
"adAccounts": [
{
"id": "5a0d0000-0000-4000-8000-000000000003",
"name": "Acme Ads",
"currency": "USD",
"timezone": "America/Los_Angeles",
"status": "ACTIVE"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "get ad accounts",
"status": "error",
"code": 366,
"message": "Error getting ad accounts. Please verify you have an active Snapchat ad account and have granted permission to access it. Try unlinking and relinking the platform, then try again. Contact us if the issue persists."
}
Snap をブーストできる Snapchat 広告アカウントを取得します。アカウントの
id を 投稿をブーストの accountId として使用します。
- まず「Social Accounts」ページで Snapchat をリンクしてください。リストには、リンク済みアカウントが参照できるすべての Snapchat 組織の広告アカウントが含まれます。
- 各アカウントには
idがあり、Snapchat が報告する場合はname、currency、timezone、statusも含まれます。 - ブーストの予算と費用は、広告アカウントの
currencyで表されます。 - すべてのアカウントを 1 つのレスポンスで取得するには、
limitを省略します。
ヘッダーパラメータ
クエリパラメータ
レスポンスに
meta.pagination.hasMore: true がある場合、その meta.pagination.next の値をここに送ると次のページを取得できます。その他のパラメータは変更せずに送ってください: 別のリクエストの next 値は code: 101 を返します。curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/snapchat/accounts
{
"status": "success",
"adAccounts": [
{
"id": "5a0d0000-0000-4000-8000-000000000003",
"name": "Acme Ads",
"currency": "USD",
"timezone": "America/Los_Angeles",
"status": "ACTIVE"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "get ad accounts",
"status": "error",
"code": 366,
"message": "Error getting ad accounts. Please verify you have an active Snapchat ad account and have granted permission to access it. Try unlinking and relinking the platform, then try again. Contact us if the issue persists."
}