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

1.0.1 • Public • Published

@xai/adsense-sdk TypeScript SDK for Google AdSense integration in Next.js, React, Vue, and Svelte. Installation npm install @xai/adsense-sdk

Usage React/Next.js 'use client';

import { AdUnit } from '@xai/adsense-sdk';

export default function AdsPage() { return ( <AdUnit adClient="ca-pub-XXXXXXXXXXXXXXXX" adSlot="1234567890" format="auto" responsive={true} fallbackContent={

Ad failed to load
} /> ); }

Vue

<script setup lang="ts"> import { AdUnitVue } from '@xai/adsense-sdk'; </script>

Svelte

<script lang="ts"> import { AdUnitSvelte } from '@xai/adsense-sdk'; </script>

License MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tecxera/adsense-sdk

Weekly Downloads

15

Version

1.0.1

License

MIT

Unpacked Size

64 kB

Total Files

28

Last publish

Collaborators

  • snacci