> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ad-unblock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Others (HTML/JS)

> Direct integration using vanilla HTML and JavaScript

<Info>
  **Where to find your verification code**: Your verification code is your
  **Account ID**, shown at the top of your AdUnblock dashboard.
</Info>

<Warning>
  The `data-code` attribute is **required**. Set it to your Account ID
  (verification code) — AdUnblock uses this value to verify that the script is
  running on your registered domain.
</Warning>

<Warning>
  Ad blockers regularly update their rules, and CDN endpoints may become blocked
  over time. As a site owner, you are responsible for using the latest valid CDN
  endpoints by regularly checking the System Status page or implementing
  server-side fetching from `https://public.adunblocker.com/api/vendor_scripts`.
</Warning>

<Steps>
  <Step title="Add the Script">
    Add the following script to your website's `<head>` section:

    ```html theme={null}
    <script src="LATEST_SCRIPT_URL" async data-code="YOUR_VERIFICATION_CODE"></script>
    ```

    **Important:**

    * Replace `YOUR_VERIFICATION_CODE` with your unique verification code from the dashboard.
    * Replace `LATEST_SCRIPT_URL` with the current script URL. Fetch the latest script URL from: `https://public.adunblocker.com/api/vendor_scripts`
  </Step>

  <Step title="Server-side Integration (Recommended)">
    For production environments, implement server-side fetching from our API with proper caching.
  </Step>

  <Step title="Verify Integration">
    After adding the script, verify your integration is working properly by navigating to your site and checking if the ads are visible.
  </Step>
</Steps>

## Verification Code

Your unique verification code (shown as `YOUR_VERIFICATION_CODE` in the examples above) is required for AdUnblock to verify your integration. This code is specific to your registered domain.

## Available Script Sources

We provide multiple CDN endpoints to enhance reliability. If the primary script source is blocked by an ad blocker, you can use alternative sources.

<Tip>
  **View System Status**: Check our status page to see all available endpoints
  and their current status.
</Tip>

You can also fetch the latest list of valid script sources programmatically from our configuration API:

```
https://public.adunblocker.com/api/vendor_scripts
```

### Important Notice

As a site owner, you are responsible for ensuring your integration uses the latest valid CDN endpoints. Ad blockers regularly update their rules, which may block our endpoints. We recommend:

* Regularly check the System Status page for updated endpoint information
* For production environments, implement server-side fetching from our API with proper caching
* Use the API endpoint `https://public.adunblocker.com/api/vendor_scripts` to programmatically retrieve the latest valid scripts
* Never implement client-side fallbacks that fetch from our API directly

## Need help with implementation?

Our support team is ready to assist you with any questions or issues.

<Card title="Contact Support" icon="headset" href="https://ad-unblock.com/contact">
  Get personalized help from our technical support team.
</Card>
