Created
October 19, 2022 08:28
-
-
Save lechup/475c1bf13d80a40a4d9eb5f5b37bcecb to your computer and use it in GitHub Desktop.
SetupAD Generate Ads.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PWD=`pwd` | |
SCRIPT_DIR=`dirname -- "$0"` | |
cd $SCRIPT_DIR | |
wget https://wb.setupad.com/api/getAdsTXT/1793/download -q -O ads-new.txt | |
if [ `cat ads-new.txt | wc -l` -gt 0 ]; then | |
echo "setupad.com, 1793, DIRECT" >> ads-new.txt | |
echo "google.com, pub-3756753497936621, DIRECT, f08c47fec0942fa0" >> ads-new.txt | |
mv ads-new.txt ads.txt | |
fi | |
cd $PWD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment