Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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