Waiviogit / waivio

MIT License
8 stars 7 forks source link

Add ads.txt for adsense #5902

Closed Diana-Cherry-8 closed 10 months ago

Diana-Cherry-8 commented 1 year ago

Front-task #5899

Добавить 2й метод верификации сайта с помощью ads.txt. Этот txt должен быть в root директории сайта. https://support.google.com/adsense/answer/12171612?hl=en&visit_id=638302703542876787-1187959858&rd=1

Так оно выглядит в adsense image

Добавить поле для ввода текста для ads.txt Ads.txt: Add your AdSense .txt text This text will be added to ads.txt to your site.

Заполнение одного из полей обязательное (или Adsense code, или ads.txt). Или можно заполнить и то и то.

Пример текста:

google.com, pub-4624906456940175, DIRECT, f08c47fec0942fa0

Также можно сразу добавить валидацию, например, что "google.com, pub-" обязательное. Чтобы нельзя было что-то левое ввести, особенно <script>

image

Diana-Cherry-8 commented 1 year ago

Staging checked

Diana-Cherry-8 commented 11 months ago

Production checked