Skip to main content
Solved

Query Campaign Values Time Range

  • October 24, 2024
  • 4 replies
  • 58 views

Forum|alt.badge.img

Ref: https://developers.klaviyo.com/en/reference/query_campaign_values

When using this API. What does the timeframe filter on?

Does it filter on campaigns sent within the time period, or does it filter on events sent within the time period. 

This distinction is important because if it’s based on events in the time period, then the statistics can vary based on opens and clicks that happen within the range. If it’s based on when the campaign was sent I assume it’s the full rollup stats for the campaign. 

Thanks in advanced

Best answer by saulblum

It’s when the events happened.

https://developers.klaviyo.com/en/reference/reporting_api_overview#campaign-values-report

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

Forum|alt.badge.img+7
  • Klaviyo Employee
  • 168 replies
  • Answer
  • October 24, 2024

Forum|alt.badge.img
saulblum wrote:

This made it ambiguous for me: https://developers.klaviyo.com/en/docs/using_the_query_metric_aggregates_endpoint#about-metric-aggregates-and-klaviyo-reporting

 



And then it suggest: 




​​​​​​

If they are both based on when the event occured, why would the Query Campaign Values produce the same results as the klaviyo dashboard, when the klaviyo dashboard is supposed to be based on send time not event time? Correct?


Forum|alt.badge.img

@saulblum Any updates on this? 

I’m struggling to understand the difference in behaviors between these APIs.


Forum|alt.badge.img+7
  • Klaviyo Employee
  • 168 replies
  • November 4, 2024

I misspoke. The timeframe in this call is for when the campaign was sent., not when the events happened. It should match the campaigns reporting UI.

Query Metric Aggregates is when the events happened.