# app-ads.txt Verification

> The one file AdMob needs on your domain before it will pay full rates.

- **Applies to:** AppMint and Appwright
- **Source:** the Integration Guide shipped inside the app; this page is generated from it.
- **HTML:** https://freewebtoapk.com/docs/app-ads-txt

AdMob Publisher Verification (Required)

### 1. Why app-ads.txt is Required

Google AdMob now REQUIRES app-ads.txt file verification for all apps that show ads. Without this verification:

❌ Your ads may not serve properly  
❌ You may lose potential revenue  
❌ Your AdMob account may face restrictions

✅ With app-ads.txt: Higher ad fill rates and better CPM

### 2. Get Your Publisher ID

Your Publisher ID is the first part of your AdMob App ID:

- If your App ID is: ca-app-pub-1234567890123456~1234567890
- Your Publisher ID is: pub-1234567890123456

You need to enter this in the generator app.

```
Format:
pub-1234567890123456

Example:
ca-app-pub-1234567890123456~9876543210
         ↓
pub-1234567890123456
```

### 3. Get Your Developer Website

You must have a website URL where you'll host the app-ads.txt file. This can be:

- Your personal website
- Your company website
- A simple GitHub Pages site
- Any domain you own

Note: The website must be publicly accessible and use HTTPS.

```
Valid examples:
https://yourwebsite.com
https://yourdomain.com
https://username.github.io
```

### 4. Generate app-ads.txt in Generator _(AppMint only)_

In the Web2APK Generator app (Step 3 - AdMob section):

1. Enter your AdMob Publisher ID (pub-XXXXXXXXXXXXXXXX)
2. Enter your Developer Website URL
3. Click 'Generate app-ads.txt' button
4. The file content will be displayed in a dialog
5. For premium users: File is automatically saved to Downloads/WebToApk/{AppName}/app-ads.txt

### 4. Generate app-ads.txt in Generator _(Appwright only)_

In Appwright (Step 3 - AdMob section):

1. Enter your AdMob Publisher ID (pub-XXXXXXXXXXXXXXXX)
2. Enter your Developer Website URL
3. Click 'Generate app-ads.txt' button
4. The file content will be displayed in a dialog
5. For premium users: File is automatically saved to Downloads/Appwright/{AppName}/app-ads.txt

### 5. Upload to Your Website

Upload the app-ads.txt file to your website's root directory:

- File must be at: https://yourdomain.com/app-ads.txt
- Not in a subdirectory
- Must be plain text file
- Must be publicly accessible (no login required)

```
Correct:
https://yoursite.com/app-ads.txt ✅

Incorrect:
https://yoursite.com/folder/app-ads.txt ❌
https://yoursite.com/files/app-ads.txt ❌
```

### 6. File Content Format

Your app-ads.txt file should contain this exact format:

```
google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0

Replace 'pub-1234567890123456' with YOUR actual Publisher ID
```

### 7. Verify in AdMob Dashboard

After uploading the file:

1. Go to AdMob dashboard
2. Navigate to Settings > Account Information
3. Look for 'app-ads.txt' status
4. It may take 24-48 hours for Google to verify
5. Status should show 'Verified' when done

### 8. Test Your File

Before waiting for AdMob verification, test your file:

- Open browser and go to: https://yourdomain.com/app-ads.txt
- You should see the file content
- If you get 404 error, file is not in the correct location
- If you see HTML instead of text, wrong file type

[AdMob app-ads.txt Guide](https://support.google.com/admob/answer/9787911)

### 9. Common Issues & Solutions

❌ File not found (404): Upload to root directory, not in a folder

❌ Wrong format: Use EXACTLY the format shown (comma-separated, no extra lines)

❌ Wrong Publisher ID: Double-check your AdMob Publisher ID

❌ Website not accessible: Ensure HTTPS and no password protection

✅ Multiple Publisher IDs: Add each on a new line in the file

✅ Subdomain: If using subdomain (app.yoursite.com), file must be there too

### 10. GitHub Pages Example

If you don't have a website, use GitHub Pages (FREE):

1. Create a GitHub repository named: yourusername.github.io
2. Upload app-ads.txt file to the root
3. Enable GitHub Pages in repository settings
4. Your file will be at: https://yourusername.github.io/app-ads.txt
5. Use this URL as your Developer Website in the generator

[GitHub Pages Setup](https://pages.github.com)

