@terragamingmedia/ads-vue
@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
@idlen/chat-sdk
Idlen Chat SDK for AI chatbot publishers - monetize conversations with contextua...
1,328
@ezoic/vue-sdk
Official Ezoic ads SDK for Vue 3 — script management, display placeholders, SPA...
504
0
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 |