Export the campaign table from Meta Ads Manager or Google Ads, then send the CSV to the bot.
In Meta Ads Manager, use the export option in the toolbar above the campaign table (in most versions, Reports, then Export table data) and choose CSV. In Google Ads, click the download icon at the top right above the table and choose a CSV format.