Hi,
Thank you for reaching out to the Google Ads Scripts support team.
We would like to inform you that this product officially offers support in English and it would be great if you can reply in English. If required, we will use Google Translate to support/assist you in the best manner possible.
Based on the provided script, I have observed that the script has executed successfully. If you are looking for data in the format of "yyyy-MM-dd" for the clicks and impressions, you can refer to the below sample code. You can also go through the dates and time
documentation for more information.
const stats = currentAccount.getStatsFor('YESTERDAY');
const date = new Date();
date.setDate(date.getDate()-1);
const YESTERDAY = Utilities.formatDate(date,currentAccount.getTimeZone(),'yyyy-MM-dd');
console.log(`${stats.getClicks()} clicks ${YESTERDAY}`);
Feel free to get back in case of any further queries.
