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
Accounts
आपका linked Snapchat account जिन Snapchat ad accounts का उपयोग कर सकता है उन्हें सूचीबद्ध करें, हर account की currency, time zone और status के साथ।
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."
}
वे Snapchat ad accounts पाएँ जिनसे आप Snaps boost कर सकते हैं। किसी account का
id Boost Post में accountId के रूप में उपयोग करें।
- पहले “Social Accounts” page से Snapchat link करें। सूची में हर उस Snapchat organization के ad accounts शामिल हैं जिसे आपका linked account देख सकता है।
- हर account में उसका
idहोता है, और जब Snapchat बताता है तब उसकाname,currency,timezoneऔरstatusभी। - किसी boost का budget और खर्च ad account की
currencyमें होता है। - सभी accounts एक response में पाने के लिए
limitछोड़ दें।
हैडर पैरामीटर
क्वेरी पैरामीटर
एक page में लौटाए जाने वाले अधिकतम accounts, 1 से 1,000 तक। सभी accounts पाने के लिए इसे छोड़ दें।
जब response में
meta.pagination.hasMore: true हो, तो अगला page पाने के लिए उसका meta.pagination.next मान यहाँ भेजें। बाकी parameters बिना बदलाव के भेजें: किसी दूसरे request का 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."
}