Skip to content

Instantly share code, notes, and snippets.

@lechup
Created October 19, 2022 08:28
Show Gist options
  • Save lechup/475c1bf13d80a40a4d9eb5f5b37bcecb to your computer and use it in GitHub Desktop.
Save lechup/475c1bf13d80a40a4d9eb5f5b37bcecb to your computer and use it in GitHub Desktop.
SetupAD Generate Ads.txt
#!/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