@terragamingmedia/ads-vue

Vue and Nuxt integration for TerraGaming Media ads: createTgm, TgmAd and a Nuxt module.
Install
npm install @terragamingmedia/ads-vue
Latest Version:0.1.1
Vue:3
License:MIT
Last Updated:Oct 6, 2026
Links: GitHub  ·  npm
Maintainer: tgmadmin

@terragamingmedia/ads-vue

TerraGaming Media ads for Vue 3 and Nuxt.

npm install @terragamingmedia/ads-vue

Nuxt

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@terragamingmedia/ads-vue/nuxt"],
  tgm: { host: "tgmads.example.com" }, // or NUXT_PUBLIC_TGM_HOST
});

Vue

import { createTgm } from "@terragamingmedia/ads-vue";
app.use(createTgm({ host: "tgmads.example.com" }));
<TgmAd unit="TGM-ABC-HRS01" />
<TgmFloating unit="TGM-ABC-GMA01" />

The site tag loads once the app has mounted. <TgmAd> mounts its container in the browser only, and unmounting removes the ad. Route changes are detected by the tag; useTgm().pageview() is for manual mode.

Guide: https://help.terragamingmedia.com/publishers/install/vue/

Related Packages

@mozaic-ds/icons-vue

ADEO Design system icons for Vue usage

30,453
@idlen/chat-sdk

Idlen Chat SDK for AI chatbot publishers - monetize conversations with contextua...

1,328
vue-adsense

Google Adsense for Vue

1,329 77
@ezoic/vue-sdk

Official Ezoic ads SDK for Vue 3 — script management, display placeholders, SPA...

504 0
vue-script-component

A vuejs component to easily load scripts as a vue component

19,016 33

Version History

Version Released Vue License
0.1.1 >=3.3 MIT
0.1.0 >=3.3 MIT
Pre-releases (1)
Version Released License
0.0.0-stage