How to create an ads.txt file for your site?
PremiumAds has an ads.txt validator available on the platform. It allows publishers to create and set up their ads.txt file in a few minutes.

If you don't have an ads.txt file on your site, please follow the steps below to create one:
-
Sign in to your PremiumAds account and go to the "Sites" tab.
-
Check sites with the status "Missing lines".
-
Click on the site link to open the Ads.txt Site dashboard.
-
Click "Generate ads.txt" button to get all required lines for your site.

- Create a text file (format: .txt) and name it "ads" on your local repository.
- Copy all the lines to your ads.txt file.
- Upload the ads.txt file to your root domain (for example, https://yourdomain.com/ads.txt).
- Go back to the "Sites" tab. If the status is changed to Ads.txt is correct, your ads.txt is successfully created & up to date.
How to update your ads.txt file?
PremiumAds has an ads.txt validator available on the platform. It allows publishers to check the current status of their ads.txt file and sends warnings in case of problem detection.
If there is an issue with ads.txt on your site, you will see an alert in the notification center. Please follow the steps below to update your ads.txt:
- Copy and paste missing lines to your current ads.txt file. Do not replace or delete previously added lines to avoid revenue disruptions.
- Upload & replace a new copy of the ads.txt file to your root domain.
- If the status is changed to correct, your ads.txt is successfully updated.
<label for="a" class="formats-button"><span></span>Deeper knowledge about ads.txt</label>
<input type="checkbox" id="a" />
<embed src="https://docs.google.com/presentation/d/13Fv68g7GTbwWLPaQl-bT0971RpJridpn5dB80wRyfO0/preview?slide=id.ga1f8da5b2b_1_119"
width=100%
height=720>
<style>
.formats-button{
background: linear-gradient(to right,#e05312 ,#066d51);
background-color: #e05312;
color: #fff;
font-family: Tahoma;
font-size: 14px;
font-weight: 800;
font-style: normal;
text-decoration: none;
padding: 14px 15px;
border: 0px solid #000;
border-radius: 10px;
display: inline-flex;
justify-content: center;
align-items: center;
}
.formats-button span{
margin-right: 15px;
display: inline-flex;
width: 29px;
height: 29px;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1M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GF0ZSgxMS4xMyA0NS4wODEpIiBmaWxsPSIjZDlkYmZmIi8+DQogICAgICAgIDwvZz4NCiAgICAgICAgPGcgaWQ9Ikdyb3VwXzM5IiBkYXRhLW5hbWU9Ikdyb3VwIDM5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg4MC4wNzkgMCkiPg0KICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGVfNjMtMiIgZGF0YS1uYW1lPSJSZWN0YW5nbGUgNjMiIHdpZHRoPSI3NS44ODciIGhlaWdodD0iMjUuMjk2IiByeD0iMTIuNjQ4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg3MS41NDcgNTUuMTEyKSByb3RhdGUoMTM1KSIgZmlsbD0idXJsKCNsaW5lYXItZ3JhZGllbnQtMikiLz4NCiAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlXzY0LTIiIGRhdGEtbmFtZT0iUmVjdGFuZ2xlIDY0IiB3aWR0aD0iNzUuODg3IiBoZWlnaHQ9IjI1LjI5NiIgcng9IjEyLjY0OCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTMuODA3IDcxLjU0Nykgcm90YXRlKC0xMzUpIiBmaWxsPSIjZmZmIi8+DQogICAgICAgICAgPGNpcmNsZSBpZD0iRWxsaXBzZV8xLTIiIGRhdGEtbmFtZT0iRWxsaXBzZSAxIiBjeD0iNy44NDIiIGN5PSI3Ljg0MiIgcj0iNy44NDIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ0Ljg4IDQ1LjA4MikiIGZpbGw9IiNkOWRiZmYiLz4NCiAgICAgICAgPC9nPg0KICAgICAgPC9nPg0KICAgIDwvZz4NCiAgPC9nPg0KPC9zdmc+DQo=);
background-repeat: no-repeat;
background-size: contain;
transform: rotate(0deg);
align-items: center;
}
.formats-button:hover{
background: linear-gradient(to right,#e37152 ,#51836f);
background-color: #e37152;
}
.formats-button:active{
transform: scale(0.95);
}
input[type="checkbox"] {
display: none;
}
:checked + embed {
display: block;
}
embed {
display: none;
padding-top: 20px;
}
</style>