Access your interface

Enter your email address to access your personal interface.

13 recommendations for using the Eulerian reporting API

Updated 12 June 2026

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.

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:

  1. Open the report you want in the Eulerian interface.
  2. Open the browser’s developer tools with F12.
  3. Go to the Network tab.
  4. Find the reporting request generated by the interface.
  5. Copy the parameters you need to build the API body.

The useful items to copy include:

Item seen in the network requestUse in the API
view-idID of the attribution view
ea-datasourceValue of kind, with the rt# prefix in the API body
pathValue to use in the path field of the JSON body
IDs in the pathPublisher, 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:

ItemRole
dateRangesPeriod analysed
dimensionsThe report’s axes of analysis
kindData source / report type
metricsIndicators to extract
pathReporting level or media scope
segmentFilterClausesOptional 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:

  1. Go to the Eulerian interface.
  2. Use the search bar at the top right.
  3. Search for Sale types list.
  4. Find the IDs of the sale types you want.
  5. 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:

IDChannel
2MAILING
3ADVERTISING / Display
4AFFILIATION
5SPONSOREDLINK / Paid search
6PARTNER / Partnership
7INTERNAL
8TRUSTEDFEED
10BRANDING
16OFFLINE
17SOCIAL
20GENERIC

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, the path and the IDs from the browser’s Network tab;
  • schedule API calls from 6:00 onwards;
  • use technical IDs rather than business labels;
  • use segmentFilterClauses to 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

TopicRecommendation
EndpointPOST /ea/{site}/report/{batch}/query.json
FormatJSON
Recommended start timeFrom 6:00 onwards
Building the requestStart from an existing view in the interface
Getting the kind and the pathFrom the browser’s Network tab
Sale type filtersegmentFilterClauses with field: "ordertype_id"
Sale type IDsFound in Sale types list
Media channel IDsUse them to check the path values
Augmented MTA model IDsFrom the Create and edit models page
Complex aggregationMake 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 channelPath to use
DisplaymcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[3].mcPUBLISHER
MailingmcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[2].mcPUBLISHER
SocialmcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[17].mcPUBLISHER
SEAmcWEBSITE[1].mcGLOBALMEDIAPLAN.mcMEDIAPLAN[1].mcMEDIA[5].mcPUBLISHER
AffiliationmcWEBSITE[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;
  • mcPUBLISHER takes 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 dimensionAlias that may be applied
publisher_namepublisher alias
ope_namecampaign alias
creative_namecreative alias

So the option gives you cleaner, more consistent labels in API exports when Eulerian connectors feed aliases.

Operational recommendation

For requests by publisher:

  1. Use publisher_name as the main dimension.
  2. Add "overwriteNameByAlias": true to the report block.
  3. Test the result on the channels where both approaches coexist, Social in particular.
  4. 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.