> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts

> वे Reddit ad accounts सूचीबद्ध करें जिनका उपयोग आपका लिंक किया गया Reddit account कर सकता है, हर account के नाम और currency के साथ।

वे Reddit ad accounts सूचीबद्ध करें जिनसे आप boost कर सकते हैं। जब आप [कोई पोस्ट boost करें](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md), तो account का `id` `accountId` के रूप में भेजें।

<ul>
  <li>आपके लिंक को दिखने वाले हर Reddit business का हर ad account एक ही पेज में लौटाया जाता है। `meta.pagination.hasMore` हमेशा `false` होता है।</li>
  <li>`currency` account की currency है। Boost budgets और insights में खर्च इसी currency में होते हैं।</li>
  <li>जब Reddit `name` और `currency` नहीं देता, तो वे response में शामिल नहीं होते।</li>
  <li>Reddit को लिंक करें और ads अनुमतियाँ (`adsread`, `adsedit`, `adsconversions`) प्रदान करें। इनके बिना `code: 420` लौटाया जाता है।</li>
</ul>

## हैडर पैरामीटर

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`
**Profile-Key** `string`

[Profile Key](https://www.ayrshare.com/docs/apis/overview.md#profile-key-format) of a User Profile.

Format: `Profile-Key: PROFILE_KEY`

```bash cURL theme={"system"}
curl \
  -H "Authorization: Bearer API_KEY" \
  -X GET https://api.ayrshare.com/api/ads/reddit/accounts
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "adAccounts": [
    { "id": "a2_abc123", "name": "Acme Gardening", "currency": "USD" },
    { "id": "a2_def456", "name": "Acme Europe", "currency": "EUR" }
  ],
  "meta": {
    "pagination": { "hasMore": false }
  }
}
```

```json 401: Ads permissions missing theme={"system"}
{
  "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."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.