📱 Complete Guide: iOS App + AdMob + Blogspot for app-ads.txt Verification

If you've launched an iOS app with Google AdMob ads and want to use Blogspot (Google Blogger) to host your app-ads.txt file, this guide walks you through the entire process—step by step.

This is perfect for indie developers and app publishers looking for a free and effective way to get verified.


✅ Step 1: Create an AdMob Account & Register Your App

  1. Go to AdMob and sign in with your Google account.

  2. Click "Add App" and select iOS as the platform.

  3. Name your app and continue.

  4. Create ad units (e.g., banner, interstitial).

  5. Save your Ad Unit ID (example: ca-app-pub-0000000000000000/1111111111).


✅ Step 2: Integrate AdMob SDK into Your iOS App

  1. Add the SDK using CocoaPods.

  2. In your AppDelegate.swift file, initialize AdMob like this:

import GoogleMobileAds
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
 GADMobileAds.sharedInstance().start(completionHandler: nil)
 return true
}

  1. Add the banner or ad view to your UI wherever needed.


✅ Step 3: Link Your Blogspot Site in App Store Connect

  1. Log into App Store Connect

  2. In your app listing, go to App Information

  3. Enter the following:

Note: Once your app is published, you can only update the Marketing URL by submitting a new app version.


✅ Step 4: Configure app-ads.txt on Blogspot

Step 4-1: Enable custom ads.txt in Blogger

  • Go to Blogger > Settings > Monetization

  • Enable "Enable custom ads.txt"

  • Paste the following content (replace with your real AdMob publisher ID):

google.com, pub-0000000000000000, DIRECT, 0000000000000000

Step 4-2: Add redirect from /app-ads.txt to /ads.txt

  • Go to Blogger > Settings > Errors and redirects > Custom redirects

  • Add:
     From: /app-ads.txt
     To: /ads.txt
     Enable: Permanent redirect (301)

Step 4-3: Test
Go to https://your-blog.blogspot.com/app-ads.txt
If you see your ads.txt content, you're good to go.


✅ Step 5: Allow AdMob Crawler in robots.txt

  • Go to Blogger > Settings > Crawlers and indexing

  • Enable "Custom robots.txt"

  • Add the following:

User-agent: Google-adstxt
Disallow:

User-agent: *
Disallow: /search
Allow: /


✅ Step 6: Verify app-ads.txt in AdMob

  1. Go to AdMob → Select your App → App Settings → app-ads.txt

  2. Wait 24–48 hours for Google's crawler to verify the file

  3. Once it works, your status will change to "Verified"


📌 Summary Table

Blog host: Blogspot (Blogger)
File URL: https://your-blog.blogspot.com/app-ads.txt
Setup: ads.txt enabled, redirect from /app-ads.txt, robots.txt allows crawler
Verification time: Usually within 1–2 days
Note: Blog must be public, and pub-ID must be correct


🙋 Frequently Asked Questions

Q: Is the Marketing URL required?
A: Not required, but strongly recommended for iOS apps. It helps ensure Google's crawler can associate your domain with your app.

Q: Can I use a custom domain instead of blogspot.com?
A: Yes, custom domains like https://yourapp.com give you more control and improve reliability.

Q: Why isn’t my app getting verified?
A: Common reasons include:

  • Missing or incorrect publisher ID

  • app-ads.txt not accessible

  • No redirect from /app-ads.txt

  • robots.txt is blocking the Google-adstxt crawler

  • App Store Connect has no developer website or marketing URL


Feel free to copy and share this guide. If it helped you, leave a comment or share it with others!

Comments

Popular posts from this blog

Blur Cut Policy

Blur Cut