Skip to main content
If you do not want to read the docs through a specific framework lens and would rather start with a more general integration pattern, this page is the right place.

Minimal initialization

import { AdManager } from "@action-x/ad-sdk";
import "@action-x/ad-sdk/style.css";

const manager = new AdManager({
  apiBaseUrl: "https://network.actionx.top/api/v1",
  apiKey: "ak_your_api_key",
});

Request and render

await manager.requestAds({
  query: "User query",
  response: "Assistant response",
});

manager.render(document.getElementById("ad-container"));

Best-fit scenarios

  • Your project does not follow the official React or Vue example path
  • You want to confirm the API usage first and wrap it yourself afterward
  • You need one simple integration approach shared across multiple frameworks
Continue to the full Universal SDK guide.