Hi,
I have a fairly simple python script that runs a query to get the cost_micros, day, date for a given campaign.
It works fine but I've noticed that any days where no cost was accrued are not included in the results - e.g. it will go from Jan 1st to Jan 3rd if there was no spend on Jan 2nd. This gives an incomplete picture of the data, which is difficult to amend after retrieving.
Is there a way to force zero results to be included? I haven't been able to find anything in the docs for this.
Here is the query:
SELECT
metrics.cost_micros,
segments.day_of_week,
segments.date,
customer.currency_code
FROM campaign
WHERE campaign.status = 'ENABLED'
AND segments.date >= '2020-01-01' AND segments.date <= '2021-01-01'
ORDER BY segments.date, campaign.name
Thanks in advance if anyone has any ideas!