you would need to expand the script to get and report campaign level stats.
You can do so by adding the following lines of code directly after the line that says '
data.push([account.getCustomerId(), numCampaigns, cost, clicks, conversions, impressions]);'
So, between line 41 and 42 , add
var campaignIterator = AdsApp.campaigns().withCondition('Status != REMOVED').get();
while (campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
var campaignName = campaign.getName();
var cost = campaign.getStatsFor(config.dateRange).getCost();
var clicks = campaign.getStatsFor(config.dateRange).getClicks();
var conversions = campaign.getStatsFor(config.dateRange).getConversions();
var impressions = campaign.getStatsFor(config.dateRange).getImpressions();
data.push([account.getCustomerId(), campaignName, cost, clicks, conversions, impressions]);
}
Note, this will only report SEARCH and DISPLAY campaigns. For campaigns with a different type you need to create a script that queries the report API.