To get started, please refer to the GraphQL docs on how to send requests.
You can also try the sample query below. First, fill in the authorization headers with your JWT and your API key, then add your TripleLift member ID in the sellerMemberId
field.
curl -X POST \
-H 'Authorization: Bearer YOUR_JWT' \
-H 'X-API-Key: YOUR_API_KEY' \
-H "Content-Type: application/json" \
--data '{"query": "query {
publisherNetworkReport(
sellerMemberId: \"YOUR_MEMBER_ID\",
startDate: \"2024-01-01\",
endDate: \"2024-01-01\",
dimensions: [YMD],
metrics: [IMPRESSIONS]
) {
rows {
dimensions {
name
value
}
metrics {
... on MetricLong {
name
long: value
}
... on MetricDecimal {
name
decimal: value
}
}
}
nextCursor
totalRows
}
}", "variables": {}}' \
https://reporting-api.triplelift.net/graphql