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
/** | |
* Minimal example: Process MCC child accounts based on an account label. | |
* | |
* This script retrieves all child accounts that do NOT have the "Processed" label, | |
* processes each one (here, simply logging its customer ID), and then applies the | |
* "Processed" label to mark it as done. | |
*/ | |
function main() { | |
var labelName = 'Processed'; | |
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
// Global variables | |
var EMAIL_ADDRESS = "youremail@youremaildomain.com"; | |
var DATE_RANGE = "LAST_7_DAYS"; | |
/* | |
Possible DATE_RANGE values for the segments.date DURING clause: | |
Predefined Date Ranges: | |
- "TODAY": Data for the current day. | |
- "YESTERDAY": Data for the previous day. |