Last active
August 29, 2015 14:20
-
-
Save chipoglesby/4bb87c0a0cd530892012 to your computer and use it in GitHub Desktop.
Cost Checker - This MCC script will log the Client's Name and Cost
This file contains hidden or 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
| var dateRange = "THIS_MONTH"; | |
| function main() { | |
| MccApp.accounts().withCondition("Cost > 1.00").forDateRange(dateRange).withLimit(50).executeInParallel('runOnEachAccount'); | |
| } | |
| function runOnEachAccount() { | |
| var stats = AdWordsApp.currentAccount().getStatsFor(dateRange); | |
| var impressions = stats.getImpressions(); | |
| var clicks = stats.getClicks(); | |
| var cost = stats.getCost(); | |
| var name = AdWordsApp.currentAccount().getName(); | |
| var customerId = AdWordsApp.currentAccount().getCustomerId(); | |
| Logger.log('Starting on: '+name+' Cost: '+cost); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment