13 recommendations for using the Eulerian reporting API
1. The key principle of the Batch Reporting API
The Batch Reporting API extracts Eulerian reporting data from the views available in the interface.
Use it to automate the extraction of reports you can already work with in the Eulerian interface. It is not a tool for building, in a single request, a granularity or a combination of data that does not exist in the reports.
For example, if an analysis needs several sources or several views combined, make several API requests, then aggregate the results on the BI side, in the data warehouse or in a processing script.
2. Recommended time to run API jobs
To retrieve complete data for the previous day (D-1), we recommend running exports from 6:00 in the morning.
Overnight, Eulerian synchronises its cold database to bring in the D-1 data. A very early request, say around 5:00, may land during that synchronisation and either hit downtime or return incomplete data.
The operational recommendation is therefore to schedule API jobs from 6:00 onwards.
3. Getting the right parameters for an API request
A simple way to build an API request is to start from the report you want in the Eulerian interface, then look at the request the interface generates.
Recommended steps:
- Open the report you want in the Eulerian interface.
- Open the browser’s developer tools with
F12. - Go to the Network tab.
- Find the reporting request generated by the interface.
- Copy the parameters you need to build the API body.
The useful items to copy include:
| Item seen in the network request | Use in the API |
|---|---|
view-id | ID of the attribution view |
ea-datasource | Value of kind, with the rt# prefix in the API body |
path | Value to use in the path field of the JSON body |
IDs in the path | Publisher, channel, media plan or campaign IDs, depending on the view |
The path shown in the console already contains the IDs for the level of data you are viewing: publisher, channel, media plan, campaign and so on.
4. Query endpoint
The endpoint used to query the Batch Reporting API takes this form:
POST /ea/{site}/report/{batch}/query.json
Content-Type: application/json
The JSON body usually contains a reports array, in which you define:
| Item | Role |
|---|---|
dateRanges | Period analysed |
dimensions | The report’s axes of analysis |
kind | Data source / report type |
metrics | Indicators to extract |
path | Reporting level or media scope |
segmentFilterClauses | Optional filters, for example on sale types |
Simple example:
{
"reports": [
{
"dateRanges": [
{
"range": "YESTERDAY"
}
],
"dimensions": [
{
"field": "ope_name",
"name": "campaign"
}
],
"kind": "rt#insummary",
"metrics": [
{
"field": "scartvalid",
"name": "sales"
}
],
"path": "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
}
]
}
Adapt the kind, the path, the dimensions and the metrics to the report you want to reproduce.
5. Filtering on sale types
Filters on sale types are handled through segmentFilterClauses.
For sale types, the field to use is:
"field": "ordertype_id"
Example request with a sale type filter:
{
"reports": [
{
"dateRanges": [
{
"range": "YESTERDAY"
}
],
"dimensions": [
{
"field": "ope_name",
"name": "campaign"
}
],
"kind": "rt#insummary",
"metrics": [
{
"field": "scartvalid",
"name": "sales"
}
],
"path": "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
"segmentFilterClauses": [
{
"field": "ordertype_id",
"operator": "IN",
"value": [
1,
2
]
}
]
}
]
}
Get the IDs to put in value from the Eulerian interface, by searching for Sale types list.
Remember: do not put the sale type’s business label in the API request. Use its technical ID.
6. Getting the sale type IDs
To get the sale type IDs:
- Go to the Eulerian interface.
- Use the search bar at the top right.
- Search for Sale types list.
- Find the IDs of the sale types you want.
- Use these IDs in
segmentFilterClauses.value.
Example:
"segmentFilterClauses": [
{
"field": "ordertype_id",
"operator": "IN",
"value": [
117,
135,
159
]
}
]
The values above are examples only. Adapt them to the client’s scope and to the sale types actually visible in the interface.
7. Eulerian media channel IDs
The main media channel IDs are:
| ID | Channel |
|---|---|
| 2 | MAILING |
| 3 | ADVERTISING / Display |
| 4 | AFFILIATION |
| 5 | SPONSOREDLINK / Paid search |
| 6 | PARTNER / Partnership |
| 7 | INTERNAL |
| 8 | TRUSTEDFEED |
| 10 | BRANDING |
| 16 | OFFLINE |
| 17 | SOCIAL |
| 20 | GENERIC |
You can use these IDs to check or build the path values for media views.
8. IDs of the augmented attribution models
For the attribution algorithms, the IDs are visible in the Eulerian interface, on the Create and edit my models page.
This lets you identify the attribution model used in the reporting views.
9. Integration best practice on the BI / data warehouse side
To industrialise your use of the Eulerian reporting API, we recommend that you:
- start from an existing view in the Eulerian interface to build the API request;
- get the
kind, thepathand the IDs from the browser’s Network tab; - schedule API calls from 6:00 onwards;
- use technical IDs rather than business labels;
- use
segmentFilterClausesto apply specific filters; - run several requests when the view you want combines several scopes;
- aggregate the results on the BI side, in the data warehouse or in a processing script;
- keep an extraction timestamp to make auditing the data easier.
10. Operational summary
| Topic | Recommendation |
|---|---|
| Endpoint | POST /ea/{site}/report/{batch}/query.json |
| Format | JSON |
| Recommended start time | From 6:00 onwards |
| Building the request | Start from an existing view in the interface |
Getting the kind and the path | From the browser’s Network tab |
| Sale type filter | segmentFilterClauses with field: "ordertype_id" |
| Sale type IDs | Found in Sale types list |
| Media channel IDs | Use them to check the path values |
| Augmented MTA model IDs | From the Create and edit models page |
| Complex aggregation | Make several requests, then aggregate on the BI side |
11. How to query media plans
To query media plans through the Eulerian reporting API, we recommend splitting the request into several parts so that it stays workable and usable.
Good practice is to make one request per acquisition channel.
Each request has the same structure, with a different path depending on the channel you want.
| Acquisition channel | Path to use |
|---|---|
| Display | mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[3].mcPUBLISHER |
| Mailing | mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[2].mcPUBLISHER |
| Social | mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[17].mcPUBLISHER |
| SEA | mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[5].mcPUBLISHER |
| Affiliation | mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[4].mcPUBLISHER |
In these examples:
mcWEBSITE[1]is the site concerned;mcMEDIAPLAN[1]is the targeted media plan;mcMEDIA[x]is the acquisition channel;mcPUBLISHERtakes you down to publisher level.
Adapt the IDs to the client’s context and the reporting level you want.
Example request for the Display channel
Example for the Display channel, with attribution views 3, 8 and 6, over the period from 1 April 2026 to 31 May 2026.
{
"async": false,
"reports": [
{
"kind": "rt#mediaplan",
"path": "mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[3].mcPUBLISHER",
"segments": [
{
"name": "Attribution rule",
"operator": "IN",
"type": "attributionrule",
"value": [
3,
8,
6
]
}
],
"dimensions": [
{
"field": "publisheralias_alias",
"name": "Support"
}
],
"metrics": [
{
"name": "Ventes réelles",
"field": "realscartvalid"
}
],
"dateRanges": [
{
"dateFrom": "2026-04-01",
"dateTo": "2026-05-31",
"dateFormat": "YYYY-MM-DD"
}
]
}
]
}
To query another channel, keep the same structure and replace the path value with the one for the channel you want.
For example, for SEA, the path becomes:
"path": "mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[5].mcPUBLISHER"
This approach keeps response times safe, gives you better control over the volumes returned and makes it easier to aggregate the results on the BI or data warehouse side.
12. Recommendation: choosing between publisheralias_alias and publisher_name
In a request, the publisheralias_alias dimension may sometimes return an empty value even though metrics are present.
This is normal, and depends on how Eulerian tracking was implemented on the partner platforms.
The difference between publisheralias_alias and publisher_name
When Eulerian tracking is implemented inside a third-party platform such as a DSP, an ad server or a media platform, the campaign tracking parameters do not always collect the publisher or campaign name directly through a readable macro, for example:
ead-publisher={{publisher_name}}, qui deviendrait "lequipe.fr"
In that case, the tracking may be fed with technical IDs, for example:
ead-publisher={{publisher_id}}, qui deviendrait "1234"
Eulerian then uses EPC connectors to map the ID collected in the tracking parameters to the real label of the publisher or campaign as it appears in the third-party platform.
On the Eulerian side, these reprocessed labels are called aliases. They are available through the dimension:
{
"field": "publisheralias_alias",
"name": "Support"
}
Conversely, when the publisher name is sent directly in the tracking, with no connector mapping needed, use the dimension:
{
"field": "publisher_name",
"name": "Support"
}
13. Using overwriteNameByAlias to handle aliases automatically
To avoid juggling publisher_name and publisheralias_alias by hand, you can use the following API option:
"overwriteNameByAlias": true
This option tells the API to prefer the alias when there is one, and to keep the raw name when no alias is available.
In particular, it covers this case:
- if the publisher has an alias, the API returns the alias;
- if the publisher has no alias, the API returns the
publisher_name.
This cuts down empty rows in exports and gives you a “Publisher” dimension that is more directly usable on the BI or data warehouse side.
Where to put the option in the request
Add the overwriteNameByAlias option at report block level, alongside kind, path, segments, dimensions, metrics and dateRanges.
Example for the Social channel:
{
"async": false,
"reports": [
{
"kind": "rt#mediaplan",
"path": "mcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[17].mcPUBLISHER",
"overwriteNameByAlias": true,
"segments": [
{
"name": "Attribution rule",
"operator": "IN",
"type": "attributionrule",
"value": [
3,
8,
6
]
}
],
"dimensions": [
{
"field": "publisher_name",
"name": "Support"
}
],
"metrics": [
{
"name": "Ventes réelles",
"field": "realscartvalid"
}
],
"dateRanges": [
{
"dateFrom": "2026-04-01",
"dateTo": "2026-05-31",
"dateFormat": "YYYY-MM-DD"
}
]
}
]
}
Dimension to use with this option
When overwriteNameByAlias is enabled, we recommend using the standard publisher_name dimension:
"dimensions": [
{
"field": "publisher_name",
"name": "Support"
}
]
The API then applies the alias whenever one is available.
This is simpler than querying publisher_name and publisheralias_alias separately and then reconciling the two fields on the BI side.
Scope of the option
The overwriteNameByAlias option does not only apply to publishers.
It can also apply to other dimensions that have an alias mechanism, for example:
| Raw dimension | Alias that may be applied |
|---|---|
publisher_name | publisher alias |
ope_name | campaign alias |
creative_name | creative alias |
So the option gives you cleaner, more consistent labels in API exports when Eulerian connectors feed aliases.
Operational recommendation
For requests by publisher:
- Use
publisher_nameas the main dimension. - Add
"overwriteNameByAlias": trueto the report block. - Test the result on the channels where both approaches coexist, Social in particular.
- Keep the option if publishers come through correctly with the expected aliases and with no unexplained empty rows.
This option is especially useful for the Social channel, where some campaigns may be tracked through partner IDs and then reprocessed via aliases, while others may be tracked by hand with a publisher name already available.