📱 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
-
Go to AdMob and sign in with your Google account.
-
Click "Add App" and select iOS as the platform.
-
Name your app and continue.
-
Create ad units (e.g., banner, interstitial).
-
Save your Ad Unit ID (example: ca-app-pub-0000000000000000/1111111111).
✅ Step 2: Integrate AdMob SDK into Your iOS App
-
Add the SDK using CocoaPods.
-
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
}
-
Add the banner or ad view to your UI wherever needed.
✅ Step 3: Link Your Blogspot Site in App Store Connect
-
Log into App Store Connect
-
In your app listing, go to App Information
-
Enter the following:
-
Developer Website: https://your-blog.blogspot.com
-
Marketing URL (optional but recommended): https://your-blog.blogspot.com
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: /
-
Then visit https://your-blog.blogspot.com/robots.txt to confirm it shows the above.
✅ Step 6: Verify app-ads.txt in AdMob
-
Go to AdMob → Select your App → App Settings → app-ads.txt
-
Wait 24–48 hours for Google's crawler to verify the file
-
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
Post a Comment