✅ Created Files:
public/app-ads.txt- Your AdMob app-ads.txt filepublic/index.html- Simple landing page for your appfirebase.json- Firebase Hosting configuration
google.com, pub-5029120740748641, DIRECT, f08c47fec0942fa0
This file will be accessible at: https://your-firebase-domain.web.app/app-ads.txt
npm install -g firebase-toolsfirebase loginfirebase init hostingWhen prompted:
- Select your existing Firebase project
- Set public directory:
public✅ (already configured) - Configure as single-page app:
No - Set up automatic builds:
No
firebase deploy --only hostingAfter deployment, you'll see output like:
✔ Deploy complete!
Hosting URL: https://your-project-id.web.app
- Go to Google Play Console
- Navigate to your app listing
- Find the "Developer website" field
- Enter your Firebase Hosting URL:
https://your-project-id.web.app - Save changes
Important: The domain in Google Play MUST match exactly where your app-ads.txt is hosted!
- Go to AdMob console
- Navigate to Apps → Your App
- Check "app-ads.txt" status
- It should show ✅ "Authorized"
# Deploy for the first time
firebase login
firebase init hosting
firebase deploy --only hosting
# Subsequent updates
firebase deploy --only hostingAfter deployment, verify your app-ads.txt is accessible:
curl https://your-project-id.web.app/app-ads.txtExpected output:
google.com, pub-5029120740748641, DIRECT, f08c47fec0942fa0
- Make sure you deployed with
firebase deploy --only hosting - Check that
public/app-ads.txtexists - Verify
firebase.jsonhas correct "public" directory
- Wait 24 hours for AdMob to crawl
- Verify domain in Play Store matches hosting URL exactly
- Check file is accessible via curl/browser
- Run
firebase projects:listto see available projects - Use
firebase use <project-id>to select correct project - Check
.envfor correct Firebase project ID
If Firebase CLI doesn't work, you can also:
- Go to Firebase Console → Hosting
- Use Firebase Console's web interface to upload files
- Deploy directly from the console
- Wait 24 hours after deployment for AdMob to verify
- The app-ads.txt file must be at the root:
yourdomain.com/app-ads.txt - Domain in Play Store must match hosting URL exactly
- Keep the file deployed permanently for AdMob to work
- Publisher ID: pub-5029120740748641
- App ID: ca-app-pub-5029120740748641~7524355155
- Package: com.master.reshmeinfo
- Deploy using commands above
- Update Google Play Store with hosting URL
- Wait 24 hours
- Check AdMob dashboard for verification
Need Help?
- Firebase Hosting Docs: https://firebase.google.com/docs/hosting
- AdMob app-ads.txt Guide: https://support.google.com/admob/answer/9363762