Skip to content

Instantly share code, notes, and snippets.

@russorat
Created November 13, 2015 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russorat/e96dc625557b0216bbf5 to your computer and use it in GitHub Desktop.
Save russorat/e96dc625557b0216bbf5 to your computer and use it in GitHub Desktop.
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