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."
}
احصل على حسابات Snapchat الإعلانية التي يمكنك تعزيز Snaps منها. استخدم
id الخاص بالحساب كـ accountId في تعزيز المنشور.
- اربط Snapchat أولًا من صفحة “Social Accounts”. تشمل القائمة الحسابات الإعلانية في كل مؤسسات Snapchat التي يستطيع حسابك المرتبط رؤيتها.
- لكل حساب
idخاص به، وnameوcurrencyوtimezoneوstatusعندما يُبلغ عنها Snapchat. - تكون الميزانيات والإنفاق في التعزيز بعملة
currencyالخاصة بالحساب الإعلاني. - احذف
limitللحصول على جميع الحسابات في استجابة واحدة.
معاملات الترويسة
معاملات الاستعلام
الحد الأقصى لعدد الحسابات المُعادة في صفحة واحدة، من 1 إلى 1,000. احذفه للحصول على جميع الحسابات.
عندما تحتوي الاستجابة على
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."
}