Coder Social home page Coder Social logo

admariner / publisher-ads-lighthouse-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googleads/publisher-ads-lighthouse-plugin

0.0 0.0 0.0 2.1 MB

Publisher Ads Lighthouse Plugin is a tool to improve ad speed and overall quality through a series of automated audits. This tool will aid in resolving discovered problems, providing a tool to be used to evaluate effectiveness of iterative changes while suggesting actionable feedback.

License: Apache License 2.0

JavaScript 88.84% HTML 11.15% CSS 0.01%

publisher-ads-lighthouse-plugin's Introduction

Publisher Ads Audits for Lighthouse

Linux Build Status NPM lighthouse package

Publisher Ads Audits for Lighthouse 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.

In order to help us improve please file an issue to let us know of any issues or suggestions you may have.

โš ๏ธ Publisher Ads Audits for Lighthouse audit results aren't an indication of compliance or non-compliance with any Google Publisher Policies.

Web App

We currently have a web app version of Publisher Ads Audits for Lighthouse. It can be accessed at developers.google.com/publisher-ads-audits.

Lighthouse Node CLI

Publisher Ads Audits is available as a node package which can be used with the Lighthouse CLI.

Setup

mkdir pub-ads-audits-wrapper && cd pub-ads-audits-wrapper && \
npm init -y && \
yarn add -D lighthouse && \
yarn add -D lighthouse-plugin-publisher-ads

Usage

From within wrapper directory

yarn lighthouse {url} --plugins=lighthouse-plugin-publisher-ads

See Lighthouse documentation for additional options.

Development

Setup

git clone [email protected]:googleads/publisher-ads-lighthouse-plugin.git
cd publisher-ads-lighthouse-plugin
yarn

Usage

node index.js <url>

Available options:

  • --view: Open report in Chrome after execution.
  • --full: Run all Lighthouse categories.
  • 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.

Continuous Integration

This plugin can be integrated with your existing CI using Lighthouse CI to ensure that ad performance hasn't regressed. Learn More.

Tests

# Lint and test all files.
yarn test

Contributions

See CONTRIBUTING.md

References

publisher-ads-lighthouse-plugin's People

Contributors

adamsilverstein avatar avparmar avatar benjamincatarevas avatar brendankenny avatar connorjclark avatar datablocksproduction avatar dependabot[bot] avatar gabomatute avatar heyawhite avatar jburger424 avatar jimper avatar jonkeller avatar lusilva avatar publisher-ads-audits-bot avatar tollmanz avatar warrengm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.