Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@burdapraha/bbelements

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@burdapraha/bbelements

Wrapper for ibillboard / bbelements Ad Server async scripts implementation with own branding solution

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

iBillBoard Ads loading library

Drupal 8 module for bbelements ads printing with own branding solution. Read article about it here: Using of Asynchronous codes.

Still under development.

How it works?

  1. You just need create blocks with markdown like this:

    <div id="05500400-3893-4623-a661-46a6e32d9a24" data-bbelements-id="248828.1.2.9"></div>
            
    - `id` of <div> must be unique, good for it is block uuid
    - `data-bbelements-id` is unique identificator of advertising in bbelements system
    
  2. javascript will inspect DOM of page and find all positions with these ids and will make request to adserver. Ads will be printed from system.

Google Tag Manager settings

Import this container JSON file to your GTM account, see more here.

Steps:

  1. Download JSON
  2. Rename UA-XXXXXX-YY to your GA code in this file
  3. Admin => Import Container
  4. Choose container file (what you download from here)
  5. Choose workspace: Existing => (your workspace, probably Default)
  6. Choose an import options: Merge => Rename conflicting tags, triggers and variables
  7. View Detailed Changes
  8. Confirm

How can I use it without Drupal?

Sure! Easily..

yarn install @burdapraha/bbelements or npm install @burdapraha/bbelements

Implementation:

<head>
...
<script src="//bbcdn-static.bbelements.com/scripts/ibb-async/stable/tag.js"></script>
...
</head>
<body>

    ...

    <!-- this is example positions somewhere in page -->
    <div id="ab" data-bbelements-id="248828.1.2.7"></div>
    <div id="xy" data-bbelements-id="248828.1.2.8"></div>
    <div id="zy" data-bbelements-id="248828.1.2.9"></div>

    ...

    <!-- if you don't using branding, skip this lib -->
    <script src="{{ your_assets_path }}/js/branding.js"></script>
    
    <!-- core ads libs ->
    <script src="{{ your_assets_path }}/js/ads.js"></script>
    <script src="{{ your_assets_path }}/js/wrapper.js"></script>

</body>

FAQs

Package last updated on 03 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc