npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arc-core-components/feature_ads-arc-ad

v0.2.9-beta.0

Published

Core component that can be used within a Fusion repo to quickly get an ad.

Downloads

620

Readme

Arc Ads: A Core Component

This is a Core Component using ArcAds.

What does this Core Component give you?

The ArcAds Core Component can be used in any PageBuilder Fusion implementation. It provides an interface for interacting with ArcAds and renders the ad. As long as you have a few pieces of information (DFP id, slot names and targeting values), you can get up and running very quickly.

How do you use this Core Component?

Check out the Skeleton Repo to see a basic Fusion implementation of it. You may need to alter targeting values, depending on business requirements.

How can you fire it up locally?

To get started locally and see an ad, you'll need three things:

  1. A DFP ID, usually a string of numbers.
  2. A slot name, usually given to you by DFP, or findable by looking at an ad currently running on your site.
  3. Some ad dimensions that tell DFP what creative to return.

Once you've cloned the repo:

  1. Rename the mdx file so that it's parsable by doczmv index.mdx.fixture index.mdx

  2. Change the dfp id and possibly the slotname within the mdx file.

<ArcAd
   id="div-1"
   dfpId={/* ADD YOUR ID HERE */}
   slotName="something"
   dimensions={[[728,90], [800,250]]}
   ampLayout={{
     width: 300,
     height: 250,
     multiSize: "300x150,300x100,300x75,300x50"
   }}
 ></ArcAd>

Make sure the above reflects the correct dfp ID.

  1. run npm run docz:dev
  2. Visit localhost:3000 to see your ad appearing.

Can I use this in AMP?

Yes! Just pass in the isAmp prop to be true.