Skip to main content

5 simple steps to setup app-ads.txt in AdMob

You would be seeing a warning message in your AdMob page, to add app-ads.txt file in your website to protect your apps revenue. we will know how to get rid of that message by the end of this page. First we will study about app-ads.txt file.

What is app-ads.txt?
Authorized Sellers or app-ads.txt, is an IAB (Interactive Advertising Bureau) Tech Lab initiative designed for protecting app ad inventory. It helps ensure your app ad inventory is only sold through channels you have identified as authorized by specifying in the txt file.
Creating app-ads.txt file gives you more control who's allowed to sell ads on your app and helps prevent online ad fraud. App publishers can do this by adding the app-ads.txt file to their website, and specifying website URL in the app store listing.
Example of app-ads.txt file format:
Your app-ads.txt file must be formatted as specified by the IAB Tech Lab in order to be verified. But don't be panic. Your Admob provides a personalized code snippet that makes it easier to setup your app-ads.txt file. Learn more about how to create app-ads.txt file for your Admob account. 
Is it mandatory to setup app-ads.txt ?
No. But is highly recommended, especially if you are concerned that others may be targeting your brand through misrepresented app inventory.

Step 1: Create app-ads.txt file
As shown in the example app-ads.txt file your Publisher ID must be included and formatted correctly for your file to be verified.
To get your personalized code snippet of app-ads.txt file:
  1. Sign in to your Admob account.
  2. Click Apps in the side bar.
  3. Click View all apps from the menu.
  4. Click the app-ads.txt tab.
  5. Click How to setup app-ads.txt.
  6. Click  to next to the code snippet to copy.
  7. Paste the code snippet into a txt file and save it as app-ads.txt.
Remember to add any other ad network if you are using to your app-ads.txt file. This allows your third-party seller to also find and verify your app-ads.txt file. Contact your ad network for their app-ads.txt information.

Step 2: Establish your developer website
If you already own a website you can skip this step and go to Step3.
If you don't have a website for your developer account, you have to create one. For this first you have to purchase a domain name. ex: google.com. And to upload app-ads.txt file you need to purchase hosting server as well.

Some sites offer free domain name with hosting server purchase. Ex: GoDaddy, Namecheap. Some offer free hosting servers as well Ex: Hostinger, 000webhost, Freehosting. But think twice before you buy any domain & hosting server purchase as they might offer more affordable first year prices, but their monthly and yearly renewal prices are much higher. Avoid free services as they are not reliable at all. They will have more down time of your site and sometimes they may delete your website automatically. I personally prefer "Google Domains" to register the domain name because of easy integration with any DNS servers, reliable as it is from google and also it provides free tool "Blogger" to help you build your own website home without any coding knowledge. 

In this blog I will explain how to create a website without spending money from your pocket even to purchase domain name. This can be done with Blogger. Blogger gives you free website URL with subdomain like mywebsite.blogspot.com. Here mywebsite is your website name that you want to specify for your developer account, blogspot is subdomain name from blogger which you can not avoid for free sites.

Note: If you want to have a professional website to meet maximum customers for your apps, purchase a domain name. 

No need of any registration to create a blogger account. 
1. Open Blogger site and use your developer console login credentials or any gmail login credentials to login. 
2. Enter the details asked, to create your blog site. 
Choose a name for your blog

Choose a URL for your blog site

You get an error, if the website address you entered is already in use.

Choose a display name for your blog
3. You can see the blogger home page with the name you have chosen for your blog.  Now click on the "view blog" option.
Select view blog option to see your blog online
4. You can see your website created with default home page. 
liveblogtester online
5. If you add any 'new post' and 'publish' that will reflect in your website home page. 
liveblogtester first blog

Now you have a website created for your developer account. 

Step 3: Add your developer website in your app store listing

To add your developer website in your app store listing: 

  • Google Play: Add the website URL in the contact information of your app listing:

    1. Sign in to your Google Play Console account.
    2. Select an app.
    3. On the left menu, click Store Presence -> Store listing.
    4. Scroll to Contact Details.
    5. Add your developer website URL. 
  • For Apple App Store: Add your developer website in the marketing URL field of your store listing.
If you add or update a developer website within a store listing, it will take some time before AdMob detects those changes:

StoreDetection delay
Google PlayAllow up to 24 hours
Apple App StoreAllow up to 7 days


Step 4: Upload app-ads.txt file on your developer website
In accordance with the app-ads.txt specification, the Admob crawler will look for files at the following URL patterns.
  • https://<<hostname>>/app-ads.txt
  • http://<<hostname>>/app-ads.txt
Here the hostname can be your website's domain or subdomain. 

The following example shows general examples of where the Admob crawler look for an app-ads.txt for different developer website URLs.
If the developer website is:
Crawler looks in the following order:
https://example.com/game
https://example.com/app-ads.txt
http://example.com/app-ads.txt
http://help.example.com/game
https://help.example.com/app-ads.txt
http://help.example.com/app-ads.txt
https://example.com/app-ads.txt
http://example.com/app-ads.txt
http://support.help.example.com/game
https://help.example.com/app-ads.txt
http://help.example.com/app-ads.txt
https://example.com/app-ads.txt
http://example.com/app-ads.txt
Note: "help.example.com" is at the first subdomain level and used for crawling, while “support.help.example.com” is at the second subdomain level and not used for crawling.
https://www.example.com/game
https://example.com/app-ads.txt
http://example.com/app-ads.txt
Note: The specification excludes "www." and "m." subdomainsas locations where crawlers will look for files. 
https://m.example.com/game
https://example.com/app-ads.txt
http://example.com/app-ads.txt
Note: The specification excludes "www." and "m." subdomainsas locations where crawlers will look for files. 


If you created the website using Step2 procedure, follow the steps given below to upload the app-ads.txt file to your website. 

1. Sign in to Blogger.
2.  From the menu on the left, click Settings.
Go to settings
3. Go to Monetization option.
Go to settings-> monetization
4. Turn on Enable custom ads.txt. click Custom ads.txt.
add custom app-ads.txt in Blogger
5. Copy app-ads.txt file code snippet saved from Step1 and paste in the textbox.
6. Click Save.

To check the content of your ads.txt file, go to https://<your blog address>/ads.txt.


Step 5: Check that your app-ads.txt file is verified in your Admob account
After adding your website URL in the Google Play Store listing, it can take up to 24 hours for AdMob to crawl and verify your app-ads.txt file. Wait at least 24 hours for the app-ads.txt status to update.
If you have recently added a developer website and updated your app listing, AdMob will take some time to detect these changes.

StoreDetection delay
Google PlayUp to 24 hours
Apple App StoreUp to 7 days

You can also request AdMob to crawl your app for a faster response:
  1. Sign in to your AdMob account.
  2. Click Apps in the sidebar.
  3. Click View all apps.
  4. Click the app-ads.txt tab.
  5. In the row of the app you want to see details for, click Down Arrow. this will open additional details and the option to request AdMob to crawl your app.
  6. Click Check for updates button.
AdMob will update the status for all apps that share the same app-ads.txt file. In some cases, the "Check for updates" button may be unavailable. But note that Admob routinely crawls your latest file for updates.

Once the status is updated you can view a screen with the details of the app-ads.txt file for all of your apps in AdMob.


The table below shows the different types of app-ads.txt file statuses and what they mean.
StatusWhat it means
Green circle iconThe app-ads.txt file is found and verified. AdMob crawled and verified your app-ads.txt file. 
Gray circle iconNo app-ads.txt file is found for this app. 
Red exclamation point icon

There is an issue with your app-ads.txt file. Your revenue is at risk. 


If your file isn't found and verified, carefully review these details to determine what the issue is and how to fix it. Learn more about troubleshooting app-ads.txt issues

Comments

Popular posts from this blog

Create your first android application

When I start writing this blog I remembered the initial days of developing my first android application. I was working for a company as a senior software engineer to develop applications for blackberry devices. That time (in 2012) already Android boom was suppressing blackberry development in JAVA. So I decided to shift my technology from blackberry to android. For that I had to first convince my project delivery head that I could develop Android apps too. So, I took a first step and started researching android development process by following  https://developer.android.com/docs   and with the help of some android developers from the same company I created my first "Hello World" android app. In the process of android app development I learnt, unlike J2ME and Blackberry you no need to code for UI in android. You can just create your own screens by drag and drop of UI elements of texts, buttons, images etc., in layout files in the  res folder. So, you can just concentrate

View Crashes and ANRs in the new google play console beta version

 Many of you have got the new view of Google play developer console. We can observe many changes in the latest console view. They have grouped the features in the left menu for easy access.  To view Crashes and ANRs   1. Select an app. 2. On the left menu, scroll down to Quality group 3. Select Android Vitals --> Crashes and ANRs Use the filters to help you find and diagnose the issues. To view and troubleshoot the particular issue or crash, select the arrow on the right side of the issue. That will open a separate section which includes crash information, device information and logcat from the device. Happy Coding :-) ...