# app-ads.txt Setup

Source: https://docs.ezoic.com/docs/mobileapps/app-ads-txt/


Every app monetized with Ezoic needs an `app-ads.txt` file at the root of the developer website listed on its App Store, Google Play, or Roku store page (for example, `https://example.com/app-ads.txt`). It tells buyers which companies are authorized to sell your app's ad inventory. A missing or incomplete file causes most programmatic demand to be filtered out.

Ezoic hosts an up-to-date `app-ads.txt` for each of your sites at:

```text
https://go.ezodn.com/m/apps/app-ads.txt?d=[YOUR_DOMAIN].com
```

New lines are added automatically as your apps are approved and set up with Google Ad Manager and other demand partners. Point your developer website at this file so you never have to copy lines by hand.


**Important:** Replace `[YOUR_DOMAIN].com` with the site your apps are registered under in your Ezoic dashboard. Put the redirect or file on the **developer website from your store listing**, which can be a different domain.


## Choose Your Setup Method

### 1. Server Redirects (Recommended)

**For users with server access:**

**Apache (.htaccess):**

```apache
Redirect 301 /app-ads.txt https://go.ezodn.com/m/apps/app-ads.txt?d=[YOUR_DOMAIN].com
```

**Nginx:**

```nginx
server {
    location = /app-ads.txt {
        return 301 https://go.ezodn.com/m/apps/app-ads.txt?d=[YOUR_DOMAIN].com;
    }
}
```

**PHP:**

```php
<?php
header('Location: https://go.ezodn.com/m/apps/app-ads.txt?d=[YOUR_DOMAIN].com', true, 301);
exit;
?>
```

### 2. Automated Updates (Advanced)

**For automatic daily updates:**

```bash
curl -L "https://go.ezodn.com/m/apps/app-ads.txt?d=[YOUR_DOMAIN].com" > app-ads.txt
```


Set up a daily cron job to run this command from your website's root folder and keep your app-ads.txt file current. It replaces the whole file, so only use it if Ezoic's lines are the only ones in your app-ads.txt.


### 3. Copy the Lines Manually

Copy the lines shown on the **app-ads.txt** card of the Mobile Apps page in your Ezoic dashboard into `/app-ads.txt` on your developer website. If the file already exists, append the lines and keep its other entries. Repeat whenever new lines appear.

## Test Your Setup

1. **Visit** `https://[YOUR_DEVELOPER_WEBSITE]/app-ads.txt` in your browser
2. **Verify** you see a list of authorized sellers, including a `google.com` line once your app is set up in Google Ad Manager
3. **Clear your website cache** if the file doesn't appear immediately

Store and buyer crawlers can take a few days to pick up a new or changed `app-ads.txt`.

