Hi Jorin,
Thanks for raising this to us.
So we could further check on our end, could you share with us your customer ID as well as the access to the template spreadsheet via Reply privately to author or Reply to author option? If you encounter an error when using the said options, you may send those requested details on this email (googleadsscr...@google.com) instead.
Regards,
|
||||||
Hi Jorin,
Thanks for getting back to us.
I'm afraid that we still don't have any access on the link you've shared. However, no worries on that since you've already provided a screenshot of the spreadsheet file.
Please note that the Account Anomaly Detector script gets all available statistics but may be up to 3 hours delayed due to data's freshness. With regard to the alert you've received, the script was able to detect an anomaly when it run at 8:00 PM. However, if it will detect the same anomaly on the next runtime, it won't be reflected on the sheet file. As per the script's documentation (How it works), no subsequent alerts of the same type will be triggered for the day. If you'd like to reset the alert, delete the Alerting cell value.
Hope this helps.
Regards,

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/HQ-M5000000000000000000000000000000000000000000000QM11Q000cWWu4PYSTf-cklwIWaW3hA%40sfdc.net.
var dateRangeToCheck = getDateStringInPast(1, upTo); var dateRangeToEnd = getDateStringInPast(2, upTo);then let me know how it goes.
|
||||||

var dateRangeToCheck = getDateStringInPast(1, upTo);
var dateRangeToEnd = getDateStringInPast(2, upTo);
var dateRangeToStart = getDateStringInPast(1 + weeks * 7, upTo);
var fields = 'HourOfDay,DayOfWeek,Clicks,Impressions,Conversions,Cost';
var todayQuery = 'SELECT ' + fields +
' FROM ACCOUNT_PERFORMANCE_REPORT DURING ' + dateRangeToCheck + ',' +
dateRangeToCheck;
var pastQuery = 'SELECT ' + fields +
' FROM ACCOUNT_PERFORMANCE_REPORT WHERE DayOfWeek=' +
DAYS[getDateStringInTimeZone('u', now)].toUpperCase() +
' DURING ' + dateRangeToStart + ',' + dateRangeToEnd;
var todayStats = getReportStats(todayQuery, upToHour, 1);
var pastStats = getReportStats(pastQuery, upToHour, weeks);

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/nDeLT000000000000000000000000000000000000000000000QME7I300DKEHkWpsTzi8rcLza5800A%40sfdc.net.
// Basic reporting statistics are usually available with no more than a 3-hour
// delay.
var upTo = new Date(now.getTime() - 3 * 3600 * 1000);
var upToHour = parseInt(getDateStringInTimeZone('h', upTo));
if (upToHour == 1) {
// first run for the day, kill existing alerts
spreadsheet.getRangeByName('clicks_alert').clearContent();
spreadsheet.getRangeByName('impressions_alert').clearContent();
spreadsheet.getRangeByName('conversions_alert').clearContent();
spreadsheet.getRangeByName('cost_alert').clearContent();
}

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/87QDj000000000000000000000000000000000000000000000QMWZ1600alfc7lL2QbuXeKiWHKQIfA%40sfdc.net.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/nR8Uw000000000000000000000000000000000000000000000QNH9F100xXKGwlwdThGlS5qXvH3vjw%40sfdc.net.
Hi Jorin,
Harry here, teammate of Teejay on the Google Ads Scripts Team. Allow me to assist you this time. If you want to configure the Account Anomaly Detector to check data / stats in the last 24 hours instead of the previous hour, then you should change line 80 to compare the upToHour variable with 24 and other block of codes related to this change. Kindly try this on your end and let me know how it goes, then we'll go from there.
Thanks,
|
||||||


--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/F-9gw000000000000000000000000000000000000000000000QO1JAU00jlDS-FgfQ5WKy4lgXb_GrQ%40sfdc.net.
Hi Jorin,
Thanks for coming back. Upon checking with the team, the if condition "if (upToHour == 1)" should stay as is. It checks for the first run of the day (first hour) then it clears the alerts / contents in the spreadsheet but since you have scheduled your script to Daily at 6am, you should change the condition on line 80 to check if its 6 am (upToHour == 6).
If the script does not still clears the spreadsheet the next day of execution and considering that you've confirmed that the script now checks the data in past 24 hours, then I would suggest that you first recreate the script, re-authorize then reschedule to see if it would have the same behavior. It would also be best to create a new spreadsheet template for this one to refresh configuration and its execution. Let me know how it goes.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/KbGjl000000000000000000000000000000000000000000000QO79DJ005WVuxyHQQYKmgfVmtiWeIg%40sfdc.net.
Hi Jorin,
It's unfortunate that our changes didn't work this time around. I would suggest that you consider using the Account Summary Report script in this regard. The script fetches yesterday's statistics and updates the spreadsheet. The graphs are pre-configured to display the stats. If the email address is specified, the script sends out an HTML-formatted email.
Let me know if you have other questions/concerns.
Your account 708-138-7322 is not performing as expected today:
Cost is too high: 11.28 EUR by 1:00, expecting at most 8.32
Log into Google Ads and take a look.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/HOwD6000000000000000000000000000000000000000000000QOWXUN00_0LSsyV4QkeeRcuUnDnP9g%40sfdc.net.
|
||||||

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/8IUSPe34spk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/H8U-2000000000000000000000000000000000000000000000QQD01Q008UmptzOkTZ6k5qub6rttrA%40sfdc.net.