curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/reddit/accounts
{
"status": "success",
"adAccounts": [
{ "id": "a2_abc123", "name": "Acme Gardening", "currency": "USD" },
{ "id": "a2_def456", "name": "Acme Europe", "currency": "EUR" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "ads",
"status": "error",
"code": 420,
"message": "Ads permissions missing for this social account. Please unlink the account and relink it in the social account linking page, granting all ads permissions.",
"details": "Relink reddit and grant the ads permissions to use ads on reddit."
}
Reddit Ads
Accounts
اعرض حسابات إعلانات Reddit التي يستطيع حساب Reddit المرتبط استخدامها، مع اسم كل حساب وعملته.
GET
/
ads
/
reddit
/
accounts
curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/reddit/accounts
{
"status": "success",
"adAccounts": [
{ "id": "a2_abc123", "name": "Acme Gardening", "currency": "USD" },
{ "id": "a2_def456", "name": "Acme Europe", "currency": "EUR" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "ads",
"status": "error",
"code": 420,
"message": "Ads permissions missing for this social account. Please unlink the account and relink it in the social account linking page, granting all ads permissions.",
"details": "Relink reddit and grant the ads permissions to use ads on reddit."
}
اعرض حسابات إعلانات Reddit التي يمكنك التعزيز منها. أرسل
id الخاص بالحساب في accountId عندما تعزّز منشورًا.
- تُعرض في صفحة واحدة كل حسابات الإعلانات لكل نشاط تجاري على Reddit يستطيع الربط الخاص بك رؤيته. تكون قيمة
meta.pagination.hasMoreدائمًاfalse. currencyهي عملة الحساب، وتستخدمها ميزانيات التعزيز والإنفاق في الرؤى.- يُحذف
nameوcurrencyعندما لا يوفّرهما Reddit. - اربط Reddit وامنح أذونات الإعلانات (
adsread،adsedit،adsconversions). بدونها تكون الاستجابةcode: 420.
معاملات الترويسة
curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/ads/reddit/accounts
{
"status": "success",
"adAccounts": [
{ "id": "a2_abc123", "name": "Acme Gardening", "currency": "USD" },
{ "id": "a2_def456", "name": "Acme Europe", "currency": "EUR" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "ads",
"status": "error",
"code": 420,
"message": "Ads permissions missing for this social account. Please unlink the account and relink it in the social account linking page, granting all ads permissions.",
"details": "Relink reddit and grant the ads permissions to use ads on reddit."
}