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

@amalan-international/ads-placement

v1.0.12

Published

amalan ads placement web component

Downloads

11

Readme

Getting Started

Pre-requisites

You need to contact our team to get the CLIENT_API_KEY and to register your domain on our server's whitelist.

Installation

via npm :

npm i @amalan-international/ads-placement

via cdn :

<script src="https://cdn.jsdelivr.net/npm/@amalan-international/ads-placement"></script>

Usage

Import (ES6 Modules or Typescript) :

import AmalanAdsPlacement from 'amalan-ads-placement';

Initialize the CLIENT_API_KEY and option :

const amalan = new AmalanAdsPlacement('Your Client API Key', {
    testMode: true, // default true, set to false for production usage
});

Call mount method :

amalan.mount(); //this method will inject component to page

API Option

You can pass some optional method like create to tell the package which banner type you want to use, you can call create method as many as you want. the package will automatically prevent duplication base from the option you set.

amalan.create({
    ratio: '3:1',
    selector: '.testing-big-banner-by-class', // can be class selector
});

amalan.create({
    ratio: '1:1',
    selector: '#testing-medium-banner-by-id', // can be id selector
});

// if you not pass the selector the banner will mount in fixed position
amalan.create({
    ratio: '1:4',
});

fill method will tell the package to prepopulate some basic information to the registration form.

amalan.fill({
    email: '[email protected]', // optional
    phone_number: '+62816xxxxxx', // optional
    full_name: 'Jhon Mayor', // optional
});

Note : Make sure the mount method is called last.

Available Banner Ratio

Demo

https://web-dev-aws.amalan.xyz/id/tentang-kami-ads-placement

https://aws-dev.amalan.xyz/admin/ads-placement

https://lp.amalan.com/ads-placement-sandbox/

Contact

amalan International - [email protected]

Project Link: https://github.com/amalan-international/ads-placement