2021年8月10日 星期二

Github 當作 Play Store 開發者網站,設定 app-ads.txt

2019 年就被提示要設定這個東西,想不到 2021 年的我才想來弄,反正 App 也只有奈米收入

不過我沒有個人網站,blogger 提供了 ads.txt,害我本來想放這裡卻失敗了,然而建個人網站對我來說成本太高,於是印象中有看過放在 github 上,就來試試吧~

Create Repository On Github

其實也是蠻簡單,首先在 github 開個新 repo ,名字是 <yourusername.gihhub.io> ,開完到 setting 的 pages 隨便選一個 theme,她就變成一個網頁惹,像是這樣

https://yourusername.github.io/

Set the url to play store

把這個網址更新到 Play Store 裡的開發者網站上,在商店資訊那兒找找。

Find the app-ads.txt on Google AdMod

然後在這個 Repo 下建立一個新檔案名稱是 <app-ads.txt> ,裡面放的是 Google AdMod 提供的 <google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0> ,把這串文字貼到你的檔案裡然後 commit ,這樣就完成了~~

最後你可以在這裡看到你的成果

https://yourusername.github.io/app-ads.txt

就會出現 <google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0> 。

然後就等著 Google AdMod  檢索您應用程式商店資訊中的開發人員網站,他說大概 24 小時後會更新。



沒有留言:

張貼留言