Publisher Ads Lighthouse Plugin is a tool to improve ad speed and overall quality through a series of automated audits. At the moment, this is primarily targeted at sites using Google Ad Manager. This tool will aid in resolving discovered problems, providing a tool to be used to evaluate effectiveness of iterative changes while suggesting actionable feedback.
This tool is a plugin for Lighthouse, an open-sourced tool integrated into Chrome dev tools that is widely used by developers.
We are currently in beta and still in the development process. In order to help us improve please file an issue to let us know of any issues or suggestions you may have.
We currently have a web app version of Publisher Ads Lighthouse Plugin. It is currently in beta and can be accessed at developers.google.com/publisher-ads-audits.
git clone [email protected]:googleads/publisher-ads-lighthouse-plugin.git
cd publisher-ads-lighthouse-plugin
yarn
node index.js <url>
Available options:
--view
: Open report in Chrome after execution.- Any other Lighthouse flags.
Some common options are:
--additional-trace-categories=performance
to include general web performance audits.--emulated-form-factor=desktop
to run on the desktop version of the site.--extra-headers "{\"Cookie\":\"monster=blue\"}"
to include additional cookies on all requests.
# Lint and test all files.
yarn test
See CONTRIBUTING.md
- Lighthouse Docs: https://github.com/GoogleChrome/lighthouse
- DevTools Protocol: https://chromedevtools.github.io/devtools-protocol