Scope3
Build a framework where the media and advertising industry can collaborate on best practices for measuring emissions from the advertising value chain.
https://github.com/scope3data/methodology
Category: Emissions
Sub Category: Carbon Intensity and Accounting
Keywords from Contributors
measur transforms archiving observability generic projection animals conversion compose optimize
Last synced: about 6 hours ago
JSON representation
Repository metadata
Measurement methodology for advertising emissions
- Host: GitHub
- URL: https://github.com/scope3data/methodology
- Owner: scope3data
- License: apache-2.0
- Created: 2022-08-15T12:59:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T21:11:15.000Z (about 1 month ago)
- Last Synced: 2025-04-17T23:53:56.909Z (10 days ago)
- Language: Python
- Homepage: https://methodology.scope3.com
- Size: 68.6 MB
- Stars: 34
- Watchers: 15
- Forks: 12
- Open Issues: 21
- Releases: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: docs/supporting/comparing pbjs client and server.xlsx
README.md
An open framework for measuring digital advertising emissions
Our goal with this project is to build a framework where the media and advertising industry can collaborate on best practices for measuring emissions from the advertising value chain. This project was originally developed by Scope3 and is used to produce the Scope3 dataset.
Measuring emissions is extremely complicated in general. In the words of one industry leader, "it took us 100 years to figure out how to do financial accounting... and now we're trying to figure out carbon accounting in 2 or 3." As such, we feel like it's critical to learn in public and to be honest about what we know and what we don't know. Assuming the carbon accounting will require the same auditing and assurance process as the financial accounting world, we hope that this project will enable every step of the process to be traced and validated.
This measurement process, at a high level, works as follows:
- Gather public materials referencing sustainability and other related data from industry participants
- Pull out factual statements from these reports and normalize them into a common framework
- Apply the facts we have about each company to a model that outputs emissions by activity (for instance, per ad impression)
As of now (summer of 2022) most sustainability reports have few useful facts that help us model the emissions of a company. They often omit entire categories of emissions, omit methodology information, and blend data from disparate business units. Trying to pull out data at a product or activity level is essentially impossible. Therefore, we need to apply domain knowledge to understand how these businesses work. We also need to integrate third-party data sources to increase the granularity of our data - for instance, using a service like SimilarWeb to get sessions and traffic for a domain or app. Finally, we can use the facts that we have across the industry to fill in gaps for companies that don't fully report all of the information we need.
What's inside
This project is an attempt to "show our work" as we fill in the gaps in our knowledge. We encourage companies to use this project to improve their disclosures and even to consider providing machine-readable versions of their sustainability data.
In this project you will find:
- Public sustainability materials and the structured "fact" data from them. These are in the
data/companies
directory - Scope3 has received confidential sustainability data from a number of companies. Some of this data is useful for producing default values, and is aggregated and included anonymously in
data/private/scope3
. - A script to scan through the source data and produce industry defaults for various types of company. The script is
./scope3_methodology/cli/compute_defaults.py
and the templates are intemplates
. Also see./scope3_methodology/cli/fact_finder.py
to see how defaults are derived from the data sources we have analyzed. - A script to model the emissions for ad tech platforms (ssps, dsps, ad networks, dmps, creative ad servers, etc). See ad tech platform docs.
- A script to model the emissions for publishers. See publisher docs.
- Documentation of our calculations and assumptions in the
docs
directory. See instructions on adding to docs.
Installation
poetry is used for python dependency management. See the poetry docs for offical instructions.
On Mac you can also install poetry via brew
brew install poetry
Install Dependencies
poetry install
Activate virtual environment
poetry shell
If you want to commit code, install pre-commit hooks
pre-commit install
Development
Usage
To write defaults from latest sources:
./scope3_methodology/cli/compute_defaults.py
To run tests:
python -m unittest
To compute the corporate emissions, pass in its YAML file and org type (which will make defaults more accurate):
./scope3_methodology/cli/model_corporate_emissions.py --verbose {generic,atp,publisher} [company_file.yaml]
To compute the emissions for an ad tech company, pass in its YAML file:
./scope3_methodology/cli/model_ad_tech_platform.py -v [--corporateEmissionsG] [--corporateEmissionsGPerRequest] [company_file.yaml]
To compute the emissions for publisher, pass in its YAML file:
./scope3_methodology/cli/model_publisher_emissions.py -v [--corporateEmissionsG] [--corporateEmissionsGPerImp] [company_file.yaml]
Owner metadata
- Name: Scope3
- Login: scope3data
- Email:
- Kind: organization
- Description:
- Website: https://scope3.com
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/97109212?v=4
- Repositories: 2
- Last ynced at: 2024-06-25T19:31:09.396Z
- Profile URL: https://github.com/scope3data
GitHub Events
Total
- Issues event: 1
- Watch event: 3
- Delete event: 4
- Issue comment event: 2
- Push event: 22
- Pull request review comment event: 1
- Pull request review event: 8
- Pull request event: 19
- Fork event: 1
- Create event: 10
Last Year
- Issues event: 1
- Watch event: 3
- Delete event: 4
- Issue comment event: 2
- Push event: 22
- Pull request review comment event: 1
- Pull request review event: 8
- Pull request event: 19
- Fork event: 1
- Create event: 10
Committers metadata
Last synced: 8 days ago
Total Commits: 266
Total Committers: 16
Avg Commits per committer: 16.625
Development Distribution Score (DDS): 0.545
Commits in past year: 57
Committers in past year: 11
Avg Commits per committer in past year: 5.182
Development Distribution Score (DDS) in past year: 0.737
Name | Commits | |
---|---|---|
Brian O'Kelley | b****y@s****m | 121 |
Emma Etherington | e****n@s****m | 69 |
Ron Lissack | r****k@s****m | 14 |
Niki Banerjee | b****i@g****m | 10 |
dependabot[bot] | 4****] | 10 |
Lucas Bassetti | l****a@g****m | 9 |
Pablo Gonzalez | p****s@g****m | 9 |
Andrew Sweeney | a****6@g****m | 7 |
Mike Freyberger | m****r@g****m | 5 |
Oleksandr Halushchak | 3****l | 5 |
Gabriel Gravel | g****g | 2 |
Gabinikay | 1****y | 1 |
James Robertson | 5****b | 1 |
Kelsey Leftwich | k****h@g****m | 1 |
Brian O'Kelley | b****y@B****l | 1 |
Niki Banerjee | n****e@s****m | 1 |
Committer domains:
- scope3.com: 4
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 37
Total pull requests: 187
Average time to close issues: 8 months
Average time to close pull requests: 7 days
Total issue authors: 5
Total pull request authors: 17
Average comments per issue: 0.59
Average comments per pull request: 0.1
Merged pull request: 153
Bot issues: 0
Bot pull requests: 19
Past year issues: 4
Past year pull requests: 41
Past year average time to close issues: N/A
Past year average time to close pull requests: 7 days
Past year issue authors: 3
Past year pull request authors: 10
Past year average comments per issue: 0.75
Past year average comments per pull request: 0.22
Past year merged pull request: 24
Past year bot issues: 0
Past year bot pull requests: 9
Top Issue Authors
- bokelley (28)
- EmmaLouise2018 (6)
- mikkokotila (1)
- maelmrgt (1)
- kishoreganjpost (1)
Top Pull Request Authors
- EmmaLouise2018 (53)
- bokelley (44)
- dependabot[bot] (19)
- pymble2073 (11)
- ohalushchak-exadel (11)
- LinguoMalkavian (10)
- LucasBassetti (9)
- ronlissack (9)
- MikeFreyberger (5)
- gravelg (4)
- Gabinikay (3)
- james-a-rob (2)
- kmoegling-scope3 (2)
- dfreifeld3 (2)
- asweeney86 (1)
Top Issue Labels
- modeling (5)
- documentation (1)
- idea (1)
Top Pull Request Labels
- dependencies (19)
- python (1)
Dependencies
- astroid 2.12.5 develop
- attrs 22.1.0 develop
- black 22.8.0 develop
- certifi 2022.6.15 develop
- cfgv 3.3.1 develop
- charset-normalizer 2.1.1 develop
- click 8.1.3 develop
- click-log 0.4.0 develop
- colorama 0.4.5 develop
- coverage 6.4.4 develop
- dill 0.3.5.1 develop
- distlib 0.3.6 develop
- filelock 3.8.0 develop
- flake8 5.0.4 develop
- identify 2.5.3 develop
- idna 3.3 develop
- iniconfig 1.1.1 develop
- isort 5.10.1 develop
- jinja2 3.1.2 develop
- lazy-object-proxy 1.7.1 develop
- markupsafe 2.1.1 develop
- mccabe 0.7.0 develop
- mypy 0.971 develop
- mypy-extensions 0.4.3 develop
- nodeenv 1.7.0 develop
- packaging 21.3 develop
- pathspec 0.10.1 develop
- platformdirs 2.5.2 develop
- pluggy 1.0.0 develop
- pre-commit 2.20.0 develop
- py 1.11.0 develop
- pycodestyle 2.9.1 develop
- pyflakes 2.5.0 develop
- pylint 2.15.0 develop
- pyparsing 3.0.9 develop
- pytest 7.1.3 develop
- requests 2.28.1 develop
- scriv 0.16.0 develop
- setuptools 65.3.0 develop
- toml 0.10.2 develop
- tomli 2.0.1 develop
- tomlkit 0.11.4 develop
- types-pyyaml 6.0.11 develop
- typing-extensions 4.3.0 develop
- urllib3 1.26.12 develop
- virtualenv 20.16.4 develop
- wrapt 1.14.1 develop
- pyyaml 6.0
- black ^22.6.0 develop
- coverage ^6.4.4 develop
- flake8 ^5.0.4 develop
- mypy ^0.971 develop
- pre-commit ^2.20.0 develop
- pylint ^2.15.0 develop
- pytest ^7.1.2 develop
- scriv ^0.16.0 develop
- types-PyYAML ^6.0.11 develop
- PyYAML ^6.0
- python ^3.10
- python 3.10 build
- anyio ==3.6.1
- click ==8.1.3
- colorama ==0.4.5
- fastapi ==0.85.0
- h11 ==0.14.0
- idna ==3.4
- pydantic ==1.10.2
- pyyaml ==6.0
- sniffio ==1.3.0
- starlette ==0.20.4
- typing-extensions ==4.4.0
- uvicorn ==0.18.3
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/create-release v1 composite
- actions/setup-python v4 composite
- actions/upload-release-asset v1.0.1 composite
- eregon/publish-release v1 composite
Score: 6.779921907472252