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 ad accounts सूचीबद्ध करें जिनका उपयोग आपका लिंक किया गया Reddit account कर सकता है, हर account के नाम और currency के साथ।
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 ad accounts सूचीबद्ध करें जिनसे आप boost कर सकते हैं। जब आप कोई पोस्ट boost करें, तो account का
id accountId के रूप में भेजें।
- आपके लिंक को दिखने वाले हर Reddit business का हर ad account एक ही पेज में लौटाया जाता है।
meta.pagination.hasMoreहमेशाfalseहोता है। currencyaccount की currency है। Boost budgets और insights में खर्च इसी currency में होते हैं।- जब Reddit
nameऔरcurrencyनहीं देता, तो वे response में शामिल नहीं होते। - Reddit को लिंक करें और ads अनुमतियाँ (
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."
}