Skip to main content

marketingAggregate

Retrieves pre-aggregated marketing analytics data. Efficiently compute metrics across specified dimensions.

marketingAggregate(
clientId: ID!
dateRange: DateRangeInput!
currency: Currency
filter: MarketingFilter
groupBy: [MarketingDimension!]!
metrics: [MarketingMetric!]!
sort: [AggregateSort!]
pagination: PaginationInput
): MarketingAggregateResponse!

Arguments

marketingAggregate.clientId ● ID! non-null scalar common-objects

The unique identifier for your client account.

marketingAggregate.dateRange ● DateRangeInput! non-null input common-objects

Date range for the data query (inclusive). Maximum 90 days at a time.

marketingAggregate.currency ● Currency enum common-objects

ISO 4217 currency for monetary fields. Defaults to EUR (no conversion). Other currencies must be configured for your account; see the Currency enum.

marketingAggregate.filter ● MarketingFilter input marketing-performance

Optional filters to narrow down results before aggregation.

marketingAggregate.groupBy ● [MarketingDimension!]! non-null enum marketing-performance

Dimensions to group data by (e.g., DATE_DAY, CAMPAIGN_NAME).

marketingAggregate.metrics ● [MarketingMetric!]! non-null enum marketing-performance

Metrics to calculate for each group.

marketingAggregate.sort ● [AggregateSort!] list input marketing-performance

Sort order for aggregated results (maximum 2 items).

marketingAggregate.pagination ● PaginationInput input common-objects

Pagination settings.

Type

MarketingAggregateResponse object marketing-performance

Response envelope for marketingAggregate. Contains aggregated rows (data), pagination info, and metadata describing the query.