Google Ads POAS Telegram Alert Script: Hourly Setup Guide

Build a custom Google Ads POAS Telegram alert script. Monitor hourly profit on ad spend, catch real-time ROAS collapses, and prevent wasted budget instantly.

By AdTurbo Team · 2026-10-16

Running high-volume Google Ads campaigns without real-time profitability safeguards is one of the fastest ways to vaporize operating margin. Most e-commerce and performance marketing teams rely on Return on Ad Spend (ROAS) as their north star metric. However, ROAS treats every dollar of revenue equally, completely ignoring Cost of Goods Sold (COGS), variable merchant processing fees, shipping expenses, and fluctuating operational overhead.

A campaign generating an impressive 450% ROAS on low-margin clearance inventory might actually be losing cash after fulfillment. Conversely, a 220% ROAS on proprietary, high-margin product lines could yield substantial net cash flow. This fundamental flaw is why performance teams are rapidly transitioning to Profit on Ad Spend (POAS).

Yet transitioning your reporting to POAS inside a weekly spreadsheet or Looker Studio dashboard creates a dangerous visibility gap. If a tracking tag drops, a bidding algorithm overspends on broad-match runaway terms, or product availability collapses midday, standard reporting reveals the wreckage 24 to 48 hours too late.

In this comprehensive technical guide, you will learn how to build, deploy, and customize a production-ready google ads poas telegram alert script. By querying current-day metrics, blending real-time spend with gross margin data, and pushing instant push alerts to Telegram, you can catch a real time roas collapse telegram alert before your daily budget burns out.

---

Why Real-Time POAS Trumps Daily ROAS Monitoring

To understand why an hourly poas alert script is essential for enterprise e-commerce and lead generation setups, we must break down the mathematics of how modern ad spend behaves under automated bidding.

The Fatal Flaw of Top-Line ROAS

Return on Ad Spend measures top-line gross revenue relative to media investment:

$\text{ROAS} = \frac{\text{Gross Revenue}},{\text{Ad Spend}}$

If you spend $1,000 on Google Ads and generate $4,000 in revenue, your ROAS is 4.0 (or 400%). However, if your Cost of Goods Sold is 75% of retail price ($3,000), and pick-pack-ship fees eat another $300, your actual gross profit is only $700. In reality, you spent $1,000 to earn $700, resulting in a net loss of $300.

POAS resolves this by evaluating profitability directly against media investment:

$\text{POAS} = \frac{\text{Gross Profit}},{\text{Ad Spend}} = \frac{\text{Gross Revenue} - \text{COGS} - \text{Variable Fees}},{\text{Ad Spend}}$

When POAS is greater than 1.0, your advertising generates gross profit above your operational costs. When POAS falls below 1.0, you are bleeding capital on every acquisition.

ROAS vs. POAS: Impact on Real-Time Campaign Decisions

| Metric Dimension | Return on Ad Spend (ROAS) | Profit on Ad Spend (POAS) |

| :--- | :--- | :--- |

| Calculation Basis | Revenue / Ad Spend | (Revenue - COGS - Fees) / Ad Spend |

| Break-Even Point | Dynamic (depends on changing margins) | Static: Exactly 1.00 |

| Inventory Sensitivity | Blind to SKU-level margin differentials | Accounts for product profitability distribution |

| Bidding Efficiency | Encourages Smart Bidding to chase easy, cheap revenue | Directs algorithms toward high-margin transactions |

| Alert Value | Triggers false alarms or misses real losses | Accurately catches catastrophic capital drains |

If you want to dive deeper into broader account diagnostics before writing code, review our PPC audit checklist to ensure your conversion tracking fundamentals are solid.

---

Script Architecture and System Prerequisites

Before opening your Google Ads script console, let's look at how the data moves through this automated alerting pipeline.

[Google Ads Account (Hourly Trigger)]

│

(GAQL Query via AdsApp)

▼

Extract Hourly Spend & Value

│

(Apply Margin Matrix/COGS)

▼

Compute Current Intra-Day POAS

│

(Evaluate Anomaly Logic)

├── POAS < 0.85 & Spend Threshold

├── Zero-Conversion Pacing Alert

└── Conversion Tag Failure Anomaly

│

[UrlFetchApp HTTP POST]

▼

[Telegram Bot API Gateway]

│

▼

PPC Team Telegram Group / Channel

The System Requirements

1. Google Ads Administrator Access: You must be able to create and schedule scripts inside Tools and Settings Scripts.

2. A Telegram Account: Used to generate a dedicated alert bot and destination group/channel.

3. A Clear Margin Assumption or Feed Integration: POAS requires margin data. The script provided below demonstrates two methods: a fixed blended-margin calculation and a dynamic campaign-level margin matrix.

For businesses managing high-velocity accounts with complex tracking ecosystems, balancing automated scripts with modern tooling is key. Implementing proper Google Ads automation ensures you spend your time diagnosing profit opportunities instead of manually pulling hourly status spreadsheets.

---

Setting Up the Telegram Bot and Notification Channel

Telegram provides a free, robust, and highly reliable webhook API that requires no authentication headers or complex OAuth tokens. You can dispatch messages with a single HTTP POST request using Google Apps Script's native UrlFetchApp utility.

Step 1: Create Your Bot via BotFather

1. Open Telegram and search for @BotFather (ensure it has the official blue verification checkmark).

2. Send /start followed by the command /newbot.

3. Provide a friendly name (e.g., Acme Media Alerts).

4. Provide a unique username ending in bot (e.g., AcmePPCMonitoringbot).

5. BotFather will return a secret HTTP API Token. Save this string safely; it resembles: 6123456789:AAFn3bJk9q8Z1xYzABCDEF1234567890.

Step 2: Create an Alert Channel or Group

1. In Telegram, create a new Group or Channel (e.g., Google Ads Profit Alarms).

2. Add your newly created bot as a Member and make it an Administrator with permission to post messages.

Step 3: Retrieve Your Chat ID

To send a message, the script needs to know the numerical chatid of your target group.

1. Send a quick test message into your new Telegram group, such as: Test ping.

2. In your web browser, navigate to:

https://api.telegram.org/bot/getUpdates

(Replace with the token from Step 1).

3. In the JSON output, locate the chat object within message or channelpost. Look for the id parameter. Group chat IDs are typically negative integers, such as -1001987654321.

4. Note this Chat ID down for the script configuration.

---

Calculating Hourly POAS: Revenue, Margins, and GAQL Queries

Google Ads Scripts operate on the modern Google Ads Query Language (GAQL). To monitor intra-day profitability, our script fetches current-day performance up to the current hour using the TODAY date range filter.

Managing Margin Inputs

Because Google Ads primarily stores top-line conversionsvalue, you must apply your Cost of Goods Sold (COGS) logic. The script uses a campaign-level margin matrix:

javascript

// Campaign Margin Matrix

// Assign default gross margin percentage (Revenue - COGS) / Revenue

const DEFAULTMARGIN = 0.45; // 45% default margin

const CAMPAIGNMARGINS = {

"Search - High Margin Electronics": 0.60,

"PMax - Clearance Lines": 0.22,

"Shopping - Core Apparel": 0.48

};

When parsing performance data, the script matches campaign names against this matrix to calculate realized Gross Profit:

$\text{Campaign Gross Profit} = \text{Conversion Value} \times \text{Campaign Margin}$

$\text{POAS} = \frac{\sum \text{Campaign Gross Profit}},{\sum \text{Cost}}$

If you are currently evaluating your overall agency or tooling investments to support this level of engineering, check out our guide on PPC management pricing to assess realistic software and management costs.

---

The Complete Production-Ready Google Ads POAS Script

Below is the complete JavaScript code designed to run inside Google Ads Scripts. It queries today's intra-day performance, isolates campaign performance, computes POAS, checks for collapse thresholds, and dispatches detailed Telegram diagnostic cards.

javascript

/

• Google Ads Hourly POAS & Real-Time ROAS Collapse Alert Script

• Author: AdTurbo Engineering / Reporting Silo

• Version: 2.1.0

/

const CONFIG = {

TELEGRAM: {

BOTTOKEN: "YOURBOTTOKENHERE", // Insert your BotFather token

CHATID: "YOURCHATIDHERE" // Insert target Telegram group ID

},

THRESHOLDS: {

MINACCOUNTSPENDALERT: 150.00, // Minimum intra-day spend before triggering alerts

POASCRITICALFLOOR: 0.85, // Alert if intra-day POAS drops below this level

POASWARNINGFLOOR: 1.15, // Warning notice if POAS drops below this level

MINHOURLYSPENDPERCAMPAIGN: 35.00, // Filter out low-volume campaigns

ALLOWZEROCONVERSIONALERT: true // Alert if high spend has zero conversions today

},

MARGINSETTINGS: {

DEFAULTGROSSMARGIN: 0.40, // 40% default if campaign not matched below

CAMPAIGNSPECIFICMARGINS: {

"Brand - Exact": 0.55,

"Non-Brand - Core Generic": 0.42,

"Performance Max - Catch-All": 0.35

}

},

ACCOUNTNAME: "Acme Retail US"

};

function main() {

Logger.log("Starting Hourly POAS & Performance Anomaly Diagnostics...");

const todayData = fetchIntraDayMetrics();

if (!todayData || todayData.campaigns.length === 0) {

Logger.log("No active campaign data found for today.");

return;

}

evaluateAndAlert(todayData);

}

function fetchIntraDayMetrics() {

// GAQL Query targeting campaign performance for TODAY

const query =

SELECT

campaign.id,

campaign.name,

campaign.status,

metrics.costmicros,

metrics.conversionsvalue,

metrics.conversions,

metrics.clicks,

metrics.impressions

FROM campaign

WHERE

campaign.status = 'ENABLED'

AND metrics.costmicros 0

AND segments.date = TODAY

;

const report = AdsApp.search(query);

let totalCost = 0;

let totalGrossProfit = 0;

let totalRevenue = 0;

let totalConversions = 0;

let campaignList = [];

while (report.hasNext()) {

const row = report.next();

const name = row.campaign.name;

const cost = row.metrics.costMicros / 1000000;

const rev = parseFloat(row.metrics.conversionsValue || 0);

const convs = parseFloat(row.metrics.conversions || 0);

// Calculate Margin for this specific campaign

const marginRate = getCampaignMargin(name);

const grossProfit = rev marginRate;

const poas = cost 0 ? (grossProfit / cost) : 0;

const roas = cost 0 ? (rev / cost) : 0;

totalCost += cost;

totalGrossProfit += grossProfit;

totalRevenue += rev;

totalConversions += convs;

campaignList.push({

id: row.campaign.id,

name: name,

cost: cost,

revenue: rev,

grossProfit: grossProfit,

conversions: convs,

poas: poas,

roas: roas,

marginRate: marginRate

});

}

const accountPoas = totalCost 0 ? (totalGrossProfit / totalCost) : 0;

const accountRoas = totalCost 0 ? (totalRevenue / totalCost) : 0;

return {

accountSummary: {

cost: totalCost,

revenue: totalRevenue,

grossProfit: totalGrossProfit,

conversions: totalConversions,

poas: accountPoas,

roas: accountRoas

},

campaigns: campaignList

};

}

function getCampaignMargin(campaignName) {

const specific = CONFIG.MARGINSETTINGS.CAMPAIGNSPECIFICMARGINS;

for (let key in specific) {

if (campaignName.toLowerCase().indexOf(key.toLowerCase()) !== -1) {

return specific[key];

}

}

return CONFIG.MARGINSETTINGS.DEFAULTGROSSMARGIN;

}

function evaluateAndAlert(data) {

const summary = data.accountSummary;

const alerts = [];

const isCriticalSpend = summary.cost = CONFIG.THRESHOLDS.MINACCOUNTSPENDALERT;

// Check 1: Account-wide Critical POAS Collapse

if (isCriticalSpend && summary.poas < CONFIG.THRESHOLDS.POASCRITICALFLOOR) {

alerts.push({

level: "CRITICAL",

type: "ACCOUNT POAS COLLAPSE",

detail: Account POAS dropped to ${summary.poas.toFixed(2)} (Target: ${CONFIG.THRESHOLDS.POASCRITICALFLOOR.toFixed(2)}). Spend: ${summary.cost.toFixed(2)}, Gross Profit: ${summary.grossProfit.toFixed(2)}.

});

} else if (isCriticalSpend && summary.poas < CONFIG.THRESHOLDS.POASWARNINGFLOOR) {

alerts.push({

level: "WARNING",

type: "POAS DEGRADATION",

detail: Account POAS is pacing low at ${summary.poas.toFixed(2)}. Intra-day spend is ${summary.cost.toFixed(2)} with ${summary.grossProfit.toFixed(2)} profit.

});

}

// Check 2: Zero-conversion runaway spend by campaign

data.campaigns.forEach(cmp = {

if (cmp.cost = CONFIG.THRESHOLDS.MINHOURLYSPENDPERCAMPAIGN && cmp.conversions === 0) {

if (CONFIG.THRESHOLDS.ALLOWZEROCONVERSIONALERT) {

alerts.push({

level: "WARNING",

type: "ZERO CONVERSION RUNAWAY",

detail: Campaign ${escapeMarkdown(cmp.name)} spent ${cmp.cost.toFixed(2)} today with 0 conversions recorded.

});

}

} else if (cmp.cost = CONFIG.THRESHOLDS.MINHOURLYSPENDPERCAMPAIGN && cmp.poas < CONFIG.THRESHOLDS.POASCRITICALFLOOR) {

alerts.push({

level: "CRITICAL",

type: "CAMPAIGN POAS FAILURE",

detail: Campaign ${escapeMarkdown(cmp.name)} POAS collapsed to ${cmp.poas.toFixed(2)} (ROAS: ${cmp.roas.toFixed(2)}). Spend: ${cmp.cost.toFixed(2)}, Profit: ${cmp.grossProfit.toFixed(2)}.

});

}

});

if (alerts.length 0) {

sendTelegramNotification(summary, alerts);

} else {

Logger.log("No anomalies detected. All performance metrics within normal parameters.");

}

}

function sendTelegramNotification(summary, alerts) {

const now = new Date();

const timeStr = Utilities.formatDate(now, AdsApp.currentAccount().getTimeZone(), "yyyy-MM-dd HH:mm z");

let message = 🚨 GOOGLE ADS PROFIT ALERT 🚨\n;

message += Account: ${escapeMarkdown(CONFIG.ACCOUNTNAME)}\n;

message += Timestamp:

${timeStr}

\n\n;

message += 📊 Intra-day Account Pulse:\n;

message += • Spend:

${summary.cost.toFixed(2)}

\n;

message += • Revenue:

${summary.revenue.toFixed(2)}

\n;

message += • Est. Gross Profit:

${summary.grossProfit.toFixed(2)}

\n;

message += • Net POAS: ${summary.poas.toFixed(2)} (ROAS: ${summary.roas.toFixed(2)})\n\n;

message += ⚠️ Actionable Trigger Details:\n;

alerts.forEach((alt, idx) = {

const icon = alt.level === "CRITICAL" ? "🔴" : "🟡";

message += ${icon} [${alt.type}]\n${alt.detail}\n\n;

});

message += 👉 Check Google Ads immediately or verify tracking.;

const endpoint = https://api.telegram.org/bot${CONFIG.TELEGRAM.BOTTOKEN}/sendMessage;

const payload = {

chatid: CONFIG.TELEGRAM.CHATID,

text: message,

parsemode: "Markdown"

};

const options = {

method: "post",

contentType: "application/json",

payload: JSON.stringify(payload),

muteHttpExceptions: true

};

try {

const response = UrlFetchApp.fetch(endpoint, options);

const resCode = response.getResponseCode();

if (resCode !== 200) {

Logger.log("Telegram API Error: " + response.getContentText());

} else {

Logger.log("Telegram notification successfully dispatched.");

}

} catch (err) {

Logger.log("HTTP Request Exception: " + err.toString());

}

}

function escapeMarkdown(text) {

return text.replace(/\[\~+-=|{}.!]/g, "\\

amp;");

}

For teams managing complex multi-account environments or seeking native machine-learning decision engines that operate beyond standard script limitations, modern platforms like AdTurbo offer real-time bid protection and autonomous execution directly alongside your profitability metrics.

---

Configuring Alert Thresholds & Diagnostics Logic

To make this script an effective defense rather than an annoying source of alert fatigue, you must configure its sensitivity settings thoughtfully.

1. Spend Minimum Buffers (MINACCOUNTSPENDALERT)

Early in the morning (e.g., 03:00 to 07:00), spending a mere $15 without a conversion yields a mathematically catastrophic POAS of 0.00. However, this is not an emergency—it is simply low-volume statistical noise.

• Recommendation: Set MINACCOUNTSPENDALERT to at least 10% to 15% of your total target daily spend. For an account spending $1,500/day, set this floor to $150 or $200 before POAS triggers are permitted to alert your mobile phone.

2. POAS Threshold Tiers (CRITICAL vs WARNING)

Not all profitability drops require immediate emergency intervention:

• POAS Critical Floor (0.85): This means your advertising is running at a direct net loss relative to gross profit. You are losing capital. This alert should alert senior PPC specialists.

• POAS Warning Floor (1.15): Your margin buffer is shrinking, but you are still in positive cash flow territory. This helps media buyers adjust campaign bidding, pause underperforming keywords, or add negatives before a critical collapse occurs.

For a structured routine on which levers to adjust when warnings fire, bookmark our Google Ads optimization checklist.

3. Campaign-Level Anomaly Detection

Often, an entire account will appear healthy because high-performing exact-match brand campaigns mask massive losses occurring inside a poorly targeted Performance Max or Broad Match campaign. The script iterates over every campaign individually. If an isolated campaign spends more than your designated hourly limit with zero conversions or sub-threshold POAS, a dedicated alert card is generated.

---

Handling Conversion Attribution Lag and Data Smoothing

One of the biggest obstacles in intra-day POAS monitoring is Conversion Attribution Lag (sometimes referred to as the conversion latency window).

The Mechanics of Attribution Delay

When a shopper clicks an ad at 10:00 AM, costs register instantly in Google Ads. However, that user might spend two hours comparing items, completing their purchase at 12:15 PM. Furthermore, server-side tracking, offline conversion imports, and Enhanced Conversions processing pipelines can introduce a 1-to-3-hour reporting delay inside the Google Ads UI.

10:00 AM: User Clicks Ad ($2.50 Media Cost Logged Instantly)

10:30 AM: Script Runs - Cost = $2.50, Revenue = $0.00 - POAS = 0.00 (Danger? No)

12:15 PM: Purchase Complete ($150 Order Value at 50% Margin)

01:30 PM: Data Processed via Enhanced Conversions - POAS jumps to 30.00

If you alert strictly on a 60-minute window, you will generate massive false-positive alert spikes during mid-morning hours.

Engineering Solutions for Attribution Lag

1. Evaluate "Today" Cumulative Instead of "Last 1 Hour": The script is intentionally designed around segments.date = TODAY. This aggregates the entire cumulative day up to the execution hour, naturally smoothing out short-term latency.

2. Look-Back Window Scaling: If your store has an extensive research cycle (common in B2B or high-ticket luxury items), you should implement a time-of-day condition where POAS alerts only run between 12:00 PM and 11:00 PM local time, allowing morning attribution to normalize.

3. Exclude Delayed Conversion Actions: If you upload store-visit conversions or phone-call sales imports with a 24-hour delay, filter your GAQL query to evaluate only instant web purchase actions (segments.conversionactionname = 'Purchase').

If your search queries are consuming budget without converting, you may also have negative keyword leaks. Check our walkthrough on how to use the search terms report to cut wasted spend to address root causes.

---

Step-by-Step Installation and Testing Guide

Follow these operational steps to install, authenticate, and schedule your script inside your Google Ads account.

Step 1: Access the Scripts Management Interface

1. Sign in to your Google Ads account.

2. In the top navigation bar, click on Tools and Settings (wrench icon) or navigate to the left-side navigation in the modern UI.

3. Under the Bulk Actions column, click Scripts.

Step 2: Create and Authorize the Script

1. Click the blue plus button (+) to create a new script.

2. In the script editor header, replace "Untitled Script" with POAS Telegram Hourly Monitor.

3. Delete any default code in the editor pane and paste the full JavaScript code provided in this guide.

4. Update the placeholder values:

• BOTTOKEN: Paste your Telegram bot API key.

• CHATID: Paste your numerical group chat ID.

• ACCOUNTNAME: Enter a readable label for your account.

5. Click the Authorize button at the bottom right. A Google OAuth modal will appear requesting permissions for Google Ads and External HTTP Connections (UrlFetchApp). Accept the permissions.

Step 3: Run a Preview Test

1. Before scheduling, click Preview at the bottom of the screen.

2. Review the Logs tab at the bottom. You should see entries resembling:

text

Starting Hourly POAS & Performance Anomaly Diagnostics...

Telegram notification successfully dispatched. (Or: No anomalies detected.)

3. If your thresholds were intentionally set high for testing, check your Telegram group. A diagnostic alert card should arrive instantly.

Step 4: Schedule the Execution Frequency

1. Click Save in the bottom right corner.

2. Return to the main Scripts dashboard.

3. In the Frequency column next to your new script, click the pencil icon.

4. Select Hourly and choose minute :00 or :15 (running at 15 minutes past the hour allows Google Ads to complete backend processing for the prior hour's clicks).

---

Advanced Customizations: Multi-Account (MCC) and Webhook Enhancements

Once your single-account script is live, consider these advanced modifications to adapt the system for agencies or larger enterprise brand portfolios.

1. Upgrading to Google Ads Manager (MCC) Execution

If you manage 20 accounts across an agency, you don't need to manually paste scripts into every single dashboard. You can convert this script into an MCC Manager script:

javascript

function main() {

const accountSelector = AdsManagerApp.accounts()

.withCondition("Manager = false")

.withLimit(50);

accountSelector.executeInParallel("processChildAccount", "afterAllAccounts");

}

function processChildAccount() {

// In parallel, each child runs the fetchIntraDayMetrics logic

const metrics = fetchIntraDayMetrics();

evaluateAndAlert(metrics);

}

This architecture executes alerts across your client roster simultaneously without exceeding execution time limits.

2. Rich Actionable Telegram Buttons (Inline Keyboards)

Telegram allows you to attach interactive buttons directly beneath alert messages. You can add deep links directly to the affected Google Ads campaign:

javascript

const payload = {

chatid: CONFIG.TELEGRAM.CHATID,

text: message,

parsemode: "Markdown",

replymarkup: {

inlinekeyboard: [[

{

text: "Open Google Ads Campaign",

url: "https://ads.google.com/aw/campaigns"

}

]]

}

};

Media buyers can tap the notification on their mobile device and jump straight into the campaign bidding interface within seconds of an anomaly.

3. Dynamic Google Sheets Margin Lookups

Hardcoding margin arrays inside JavaScript works well for small catalogs, but it breaks down if inventory profitability changes weekly. You can modify getCampaignMargin() to pull dynamically from a Google Sheet maintained by your finance or inventory logistics team using SpreadsheetApp.openById(). This decouples your advertising script from financial updates.

---

Script Limitations and When to Upgrade to Dedicated Automation

While Google Ads Scripts combined with Telegram alerts provide a lightweight monitoring layer, they have built-in structural constraints that performance marketing teams eventually outgrow:

• The 6-Minute Execution Timeout: Google Ads scripts are killed automatically if execution time exceeds 360 seconds. For large multi-thousand SKU setups, complex GAQL queries across multiple campaigns will time out.

• Execution Scheduling Windows: Scripts can only be triggered on fixed hourly schedules. If a catastrophic bidding runaway occurs at 14:02, an hourly script scheduled for 14:55 won't alert you for almost an hour.

• Passive Alerting vs. Active Intervention: A Telegram alert informs you of a problem, but it requires human hands to log in, diagnose search queries, lower target ROAS, or pause budget bleeds. When an anomaly strikes at 2:00 AM on a Sunday, an unread notification will not prevent a multi-thousand-dollar loss.

If manual script maintenance and passive monitoring are slowing down your growth, consider adopting dedicated PPC management software. Modern platforms like AdTurbo ($149/mo with a 7-day trial; credit card required) bridge the gap between reporting and action. AdTurbo uses proprietary AI agents that not only monitor real-time profit and ROAS collapse 24/7, but can also autonomously adjust keyword bids, adjust budget pacing, and prune toxic placements before losses compound.

If your Google Ads campaigns are underperforming and you need immediate clarity on your account's structural health, you can also request a comprehensive free Google Ads audit to identify hidden budget waste and margin leaks.

---

Related Guides

• PPC Campaign Management: A Complete Guide for 2026

• Why Is Google Ads So Expensive? 7 Reasons (And How to Pay Less)

• Google Ads Not Working? 11 Things to Check Before You Panic

---

Frequently Asked Questions

What is the primary difference between ROAS and POAS in Google Ads?

ROAS (Return on Ad Spend) measures gross revenue divided by advertising cost, completely ignoring your Cost of Goods Sold and operational expenses. POAS (Profit on Ad Spend) measures gross profit divided by ad spend. A high ROAS can still result in a net financial loss if product margins are low, whereas a POAS above 1.0 always represents positive gross profit after product costs.

Will this Telegram script slow down or interfere with my Google Ads account?

No, Google Ads scripts run entirely within Google's cloud infrastructure via asynchronous API read calls. The script executes isolated GAQL read queries and does not alter campaign settings, bids, or ad copy unless you specifically program write actions. It operates with zero impact on page load speeds, ad serving, or auction latency.

Why does the script alert me about low POAS early in the morning?

Early in the day, your account has incurred media spend while conversion events may not have occurred or have not yet synchronized through Google's attribution pipeline. To resolve this, increase your MINACCOUNTSPENDALERT threshold in the configuration. This ensures the script remains silent until sufficient statistical spend has accumulated to calculate a meaningful intra-day POAS.

Can I send POAS alerts to Slack or Discord instead of Telegram?

Yes. The core calculation and GAQL query logic remain identical. To route alerts to Slack or Discord, replace the sendTelegramNotification() function with an HTTP POST configured for an Incoming Webhook URL provided by Slack or Discord, adjusting the JSON payload to match their respective formatting standards.