diff --git a/README.md b/README.md index e932bbd..137f01f 100755 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ added to the `` section of your pages. | `adFormat` | String | Sets a global default ad format. Can be overridden with component props. | `analyticsDomainName` | String | Google Analytics Account Domain (if linking analytics with AdSense, i.e. `example.com`). | `analyticsUacct` | String | Google Analytics Account ID (if linking analytics with AdSense, i.e. `UA-#######-#`). -| `hideFilled` | Boolean | When `false`, unfilled ads will not be hidden, when `true` unfilled ads will be hidden. The default is `false`. +| `hideUnfilled` | Boolean | When `false`, unfilled ads will not be hidden, when `true` unfilled ads will be hidden. The default is `false`. | `includeQuery` | Boolean | When `false`, only `$route.path` is checked for changes. If set to `true` `$route.query` will also be taken into account. The default is `false`. | `onPageLoad` | Boolean | Loads Adsense script after page load. Default is `false`. | `overlayBottom` | Boolean | Enable Adsense Anchor Ads to show at bottom. Default is `false`. Refer to the AdSense docs for details. @@ -130,7 +130,7 @@ Please refer to the adsense documentation for more info. | ---- | ---- | ----------- |`showAd` | method | Trigger the show ad method to show the ad. | `updateAd` | method | Trigger the update ad method to refresh the ad. -| `isUnfilled` | computed ref | Tracks unfilled attribute on ad element. Returns `true` if `data-ad-state` = 'unfilled'. +| `isUnfilled` | computed ref | Tracks unfilled attribute on ad element. Returns `true` if `data-ad-status` = 'unfilled'. ## Automatic updating of Ads Whenever your route changes or optionally if your route query parameters change, any displayed ads will update, just as they would on normal diff --git a/src/module.ts b/src/module.ts index cab5743..f862338 100644 --- a/src/module.ts +++ b/src/module.ts @@ -61,7 +61,6 @@ export default defineNuxtModule({ head.script = head.script ?? [] head.script.push({ - key: 'adsbygoogle-script', defer: true, crossorigin: 'anonymous', src: `${ADSENSE_URL}?client=${options.id}`, diff --git a/src/runtime/components/Adsbygoogle.vue b/src/runtime/components/Adsbygoogle.vue index 4d50069..6ef6ac2 100644 --- a/src/runtime/components/Adsbygoogle.vue +++ b/src/runtime/components/Adsbygoogle.vue @@ -17,7 +17,7 @@ const { adLayout?: string | null adLayoutKey?: string | null adStyle?: Record - adFullWidthResponsive?: boolean + fullWidthResponsive?: boolean hideUnfilled?: boolean pageUrl?: string | null analyticsUacct?: string @@ -25,7 +25,7 @@ const { includeQuery?: boolean }>(), { - adFullWidthResponsive: false, + fullWidthResponsive: false, adLayout: null, adLayoutKey: null, pageUrl: null, @@ -78,7 +78,7 @@ defineExpose({ isUnfilled, updateAd, showAd }) :data-analytics-domain-name="dataAnalyticsDomainName" :data-adtest="dataAdTest" :data-adsbygoogle-status="status" - :data-ad-full-width-responsive="adFullWidthResponsive" + :data-full-width-responsive="fullWidthResponsive" />