Here’s a step-by-step guide to setting up and using the ROAS analysis script:
-
Get Your Telegram Bot Token and Chat ID:
To create a Telegram bot, open Telegram and search for “BotFather.” Start a chat with BotFather and use the command/newbot. Follow the prompts to set a name and username for your bot. After the bot is created, BotFather will provide a bot token; copy and save it. Next, find your Telegram chat ID by adding the bot to a chat, sending any message, and visiting the URLhttps://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates(replaceYOUR_BOT_TOKENwith your token). Look for thechat.idfield in the response, which will be your chat ID. -
Access Google Ads Scripts:
Log in to your Google Ads account and navigate to Tools & Settings > Bulk Actions > Scripts. Click the “+” button to create a new script. -
Add the Script:
Copy the provided script and paste it into the Google Ads script editor. Replace"YOUR_TELEGRAM_BOT_TOKEN"with your bot token and"YOUR_TELEGRAM_CHAT_ID"with your chat ID. -
Authorize the Script:
After pasting the script, click the “Authorize” button and grant the necessary permissions to allow the script to access your Google Ads account. -
Adjust Script Parameters:
Set the number of days to analyze (default is 7) and the deviation threshold percentage (default is 5%) to match your requirements. -
Run and Schedule the Script:
To test the script, click “Preview” in the editor. If the preview runs without issues, click “Run” to execute the script manually. To automate the script, click “Actions > Create Schedule” and select a frequency, such as daily or weekly. -
Monitor Results:
Once the script is running, it will analyze ROAS deviations across campaigns in your Google Ads account. If a significant deviation is detected, a notification will be sent to your Telegram chat with details about the specific account. You can also check the logs in Google Ads Scripts for additional details.
This script automates ROAS monitoring and provides instant notifications, saving you time and helping you respond quickly to potential inefficiencies in your campaigns. Interested in the topic? Join my Telegram channel. "Тут про рекламу" – all information is shared in Ukrainian. I write about AI solutions, their applications in advertising, and develop solutions designed to save time and streamline processes.
I have also developed a GPT-powered assistant for creating Google Ads texts while adhering to Google Ads policies. It's free to use, and you can access it here: Google Ads Text Writer. Use it to automate routine tasks efficiently and intelligently.