Closed ahmarif closed 2 years ago
Yes, you can use the field date_constant
instead of from_date
and to_date
for this.
so this is date_constant : yesterday?
Exactly, but remember to keep the values identical to those described in the Google Ads documentation
const campaigns = await customer.report({
entity: 'campaign',
attributes: ['campaign.name'],
metrics: [
'metrics.cost_micros',
'metrics.clicks',
'metrics.impressions',
'metrics.all_conversions',
],
date_constant: 'YESTERDAY'
})
Ok got it. That was very helpful.
Does your package offer a date range such as Yesterday or Last 30 Days? I can see 'from' and 'to' for dates.