@adhese/sdk-devtools
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Adhese SDK Devtools

The SDK offers a inline application to debug the Adhese instance. The Devtools is available whenever the SDK is in debug mode.

Installation

The devtools are not included in the SDK by default. To use the Devtools, you need to install the @adhese/sdk-devtools

::: code-group

npm install @adhese/sdk-devtools
pnpm add @adhese/sdk-devtools
yarn add @adhese/sdk-devtools
bun add @adhese/sdk-devtools

:::

Add the devtoolsPlugin function to your Adhese config plugins field:

import { devtoolsPlugin } from '@adhese/sdk-devtools';
import { createAdhese } from '@adhese/sdk';

const adhese = createAdhese({
  account: 'your-account-id',
  plugins: [devtoolsPlugin],
});

Usage

Enable debug mode by setting the debug property to true in the createAdhese function or by adding ?adhese_debug=true to the URL.

Whenever the debug mode is enabled, the Devtools is available by clicking the button Open Adhese Devtools in the bottom right corner of the page.

Inspect slots

The Devtools allows you to inspect the added slots on the page. It shows the following information:

  • Slot name
  • Format
  • Location
  • Render status
  • Campaign ID
  • Booking ID
  • Creative ID
  • Tracking ID
  • Creative type
  • Viewability tracked
  • Impression tracked
  • Element
  • Slot parameters - if available

Logs

The Devtools logs all messages from the SDK. These logs are also available in the browser console.

Parameters

The parameters tab shows all the global parameters set on the Adhese instance.

Readme

Keywords

none

Package Sidebar

Install

npm i @adhese/sdk-devtools

Weekly Downloads

61

Version

1.0.0

License

GPL-3.0

Unpacked Size

436 kB

Total Files

105

Last publish

Collaborators

  • adhese-ci
  • mefjush
  • tsturtew