Created
November 13, 2015 08:28
-
-
Save russorat/e96dc625557b0216bbf5 to your computer and use it in GitHub Desktop.
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
function main() { | |
var config_options = { | |
'default' : { | |
metric : 'Conversions', // This metric will be used for determining duds | |
threshold : 0, // Duds are less than or equal to this threshold | |
days_ago : 90, // The timeframe of the data to consider, days ago to yesterday | |
days_in_limbo : 5 // The script will warn you for this many days before deleting something | |
} | |
// If you want, you can add account specific configurations too. If an account specific config | |
// is not found, the default one from above is used. | |
//, | |
//'234-234-2345' : { | |
// metric : 'Conversions', | |
// threshold : 0, | |
// days_ago : 20, | |
// days_in_limbo : 5 | |
//} | |
}; | |
MccApp.accounts().executeInParallel( | |
'findKeywordsToDelete', | |
'generateReport', | |
JSON.stringify(config_options) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment