Ho capito la query da eseguire in Data Explorer, è:
SELECT term, count(*) searches,
sum(case when search_result_id is not null then 1 else 0 end) clicks,
round(sum(case when search_result_id is not null then 1 else 0 end) * 100.0 / count(*), 1) as ctr
from search_logs
where created_at > current_timestamp - interval '30' day
group by term
order by count(*) desc
Quindi la mia domanda finale, finale è: c’è un modo in Automation per eseguire questa query e trasformare i risultati in un CSV allegato all’email per i destinatari invece che i risultati pubblicati nel corpo dell’email?