What is add app-ads.txt file and how to implement it?



 app-ads.txt is a text file app developers upload to their developer website which lists the ad sources Authorized Digital Sellers for Apps is an IAB (Interactive Advertising Bureau) standard that allows mobile app developers to publicly declare the companies authorized to sell their in-app ad inventor.

How to implement app-ads.txt?


1- Go to the admob -> apps -> view all apps -> App-ads.txt -> How to set up app-ads.txt and copy the id .



2- After copying the id then make file name app-ads.txt 


Open a text editor on your computer (like Notepad on Windows, TextEdit on macOS, or any code editor).


then Paste the following line into the text file:

google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0 

Replace pub-XXXXXXXXXXXXXXXX with your actual AdMob Publisher ID.

Save the file with the name app-ads.txt. Ensure that the file extension is .txt and not .txt.txt.



3- Host the app-ads.txt File:


Upload the app-ads.txt file to your website's root directory. If your website is example.com, the file should be accessible at https://example.com/app-ads.txt.

Make sure you can access the file through a web browser to verify its availability.


Now you have created and hosted your app-ads.txt file with the necessary information.




4- Go to the google console and choose your app  that you need to add file to it . then Grow -> Store Presence -> Store listing . and add the link in the website. 










Happy coding






Previous Post Next Post

Contact Form