How it works

1. A daily schedule starts the run. 2. A variable holds your Smartlead API key. 3. An HTTP request fetches all campaigns from the Smartlead API. 4. The response is parsed into a list of campaigns. 5. For each campaign, a row with its id, name, status and creation date is added to a Google Sheet.