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

# ads.txt Setup

> Set up inventory authentication for backfill ads.

## Authorized Digital Sellers

**Authorized Digital Sellers** is an IAB standard to prevent ad inventory fraud. Through `ads.txt` for websites and `app-ads.txt` for apps, you prove to advertisers that "this inventory can be sold through Adrop."

If files are not properly configured, advertisers (DSPs) won't trust ad requests, which may result in **ads not being displayed or significantly reduced revenue**.

***

## Choose the Right File for Your Environment

The file you need to configure depends on **where ads are rendered**.

<CardGroup cols={2}>
  <Card title="app-ads.txt" icon="mobile">
    **Native Apps**

    When ads are displayed in Android/iOS native UI
  </Card>

  <Card title="ads.txt" icon="globe">
    **WebView-based Apps / Websites**

    When ads are displayed in WebView or browser
  </Card>
</CardGroup>

<Warning>
  Even for mobile apps, if the app is built with WebView and ads are displayed in the WebView area, you need to configure **ads.txt**. The criterion is not whether the app is registered in the app store, but **where ads are actually rendered**.
</Warning>

***

## Configuration

<Tabs>
  <Tab title="app-ads.txt (Native Apps)">
    ### Setting Up for the First Time

    If you don't have an existing `app-ads.txt`, setting up a redirect is the simplest option.

    ```
    Redirect 301 /app-ads.txt https://adrop.io/app-ads.txt
    ```

    ### Already Using app-ads.txt

    If you already have content from other ad networks, you cannot use a redirect. Visit the URL below, copy the content, and add it to your existing file.

    ```
    https://adrop.io/app-ads.txt
    ```

    <Warning>
      Deleting existing content will break other ad networks. Make sure to keep existing content and **append** Adrop's content.
    </Warning>

    ### Upload Location

    Upload to the root path of the website domain registered in App Store/Play Store.

    ```
    https://your-domain.com/app-ads.txt
    ```
  </Tab>

  <Tab title="ads.txt (Web)">
    ### Setting Up for the First Time

    If you don't have an existing `ads.txt`, setting up a redirect is the simplest option.

    ```
    Redirect 301 /ads.txt https://adrop.io/ads.txt
    ```

    ### Already Using ads.txt

    If you already have content from other ad networks, you cannot use a redirect. Visit the URL below, copy the content, and add it to your existing file.

    ```
    https://adrop.io/ads.txt
    ```

    <Warning>
      Deleting existing content will break other ad networks. Make sure to keep existing content and **append** Adrop's content.
    </Warning>

    ### Upload Location

    Upload to the root path of your website domain.

    ```
    https://your-domain.com/ads.txt
    ```
  </Tab>
</Tabs>

***

## Verification

### File Access Check

Visit the configured URL to verify the file is properly applied.

```
https://your-domain.com/ads.txt
https://your-domain.com/app-ads.txt
```

### robots.txt Crawling Permission

If `robots.txt` blocks crawlers from accessing `ads.txt` or `app-ads.txt`, ad networks cannot verify the files and **ads will not be served**.

Ensure your `robots.txt` allows crawling of these paths:

```txt robots.txt theme={null}
User-agent: *
Allow: /ads.txt
Allow: /app-ads.txt
```

### Verify Google Crawler Access

Even if the file appears correctly in your browser, ads won't serve if your server or CDN blocks Googlebot. Verify with the following commands:

```bash theme={null}
# 1. Check file accessibility
curl -iL https://your-domain.com/ads.txt

# 2. Check accessibility as Google crawler
curl -iL -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://your-domain.com/ads.txt
```

Both commands should return identical content. If the second command returns a different response, check your server/CDN configuration.

<Warning>
  Proper txt file configuration for your environment is required for backfill ads to serve correctly. Without this setup or if crawling is blocked, ad requests may be rejected.
</Warning>

***

## Next Steps

Set up the SDK for your platform:

<CardGroup cols={2}>
  <Card title="Android" icon="android" href="/sdk/android/overview">
    Android SDK integration guide
  </Card>

  <Card title="iOS" icon="apple" href="/sdk/ios/overview">
    iOS SDK integration guide
  </Card>

  <Card title="React Native" icon="react" href="/sdk/react-native/overview">
    React Native SDK integration guide
  </Card>

  <Card title="Flutter" icon="flutter" href="/sdk/flutter/overview">
    Flutter SDK integration guide
  </Card>

  <Card title="Web" icon="globe" href="/sdk/web/react">
    Web SDK integration guide
  </Card>
</CardGroup>
