Migrating from the V1 measurement endpoint to the V2 measurement endpoint

This guide outlines the approach to migrating you from the V1 Measurement endpoint to the updated V2 Measurement endpoint. The goal is to ensure a smooth transition with minimal disruptions to your access to Scope3 data.

Please also see this guide that will showcase the changes necessary to switch from V1 to V2 measure endpoint


Key Changes

Endpoint

Below is a mapping of how V1 functionality maps to V2:

V1V2
/v1/calculate/daily/v2/measure

The above endpoints take different parameters and return different data.
Please be sure to review the full V2 API documentation to better understand syntax and expected output.

Input changes

Here are the key changes to the input parameters. To see the full list of V2 parameters visit the new API reference docs.

V1 input nameV2 input nameV2 input value
dateutcDatetime2024-01-05 00:00:00
Hourly information is optional.
2024-01-05 would also be a valid value.
creative.formatCreative format is no longer supported. Instead it is suggested you provide the total bytes of the creative e.g. using totalVideoDataTransferBytesfor a video creative. Creative measurement is one of the biggest improvements made as part of the V2 API. For a comprehensive guide to V2 creative inputs see here Creative Delivery
site.domaininventoryIdnytimes.com
app.storeIdinventoryIdcom.nytimes
channelchannelapp,web,streaming-video,social,digital-audio,dooh,ctv-bvod
sellersellerName or sellerDomainteads or teads.com

Output changes

Here are the most important changes to relevant output fields. To see the full list of output parameters, please see Media Delivery.

* Please note: consumer device emissions are not included by default. In order to include consumer device emissions, make sure to select framework = scope3-consumer-device.

V1 output fieldV2 output fieldsample V2 output value
domain_coverageinventory_coverage‘modeled’
climate_riskclimate_risk_compliantFALSE
creative_distribution_emissionscreative_delivery_emissions_grams13.23
creative_consumer_device_emissionscreative_delivery_consumer_device_emissions_grams*123.34
ad_selection_emissionsad_selection_emissions_grams2.362194419
consumer_device_emissionsmedia_distribution_consumer_device_emissions_grams*5.12
media_distribution_emissionsmedia_distribution_emissions_grams2.801564
total_emissionstotal_emissions_grams65.676433

Migration Steps

  1. Convert your API client access and client ID keys to the new bear token format. See the Access and Authorization guide for more details on how to do that.
  2. Update your requests to use the latest V2 inputs.
  3. Update your integrate to consume the new V2 JSON response.

Support

For any additional questions or issues during the API migration process, please contact [email protected]


FAQ

Should I migrate to the V2 measure endpoint or consider using the new Media Delivery integration?

In most cases it is recommended to migrate to the Media Delivery integration. Media Delivery offers improved scalability, developer experience and deep integration with the CSP. See this guide for steps on migrating to Media Delivery.