Modrinth/components/GoogleAd.vue
2020-09-01 11:30:09 -07:00

39 lines
645 B
Vue

<template>
<ins
class="adsbygoogle"
:data-ad-client="adClient"
:data-ad-slot="adSlot"
:data-ad-format="adFormat"
:style="adStyle"
></ins>
</template>
<script>
export default {
name: 'GoogleAd',
props: {
adClient: {
type: String,
required: true,
},
adSlot: {
type: String,
required: true,
},
adFormat: {
type: String,
required: false,
default: 'auto',
},
adStyle: {
type: String,
required: false,
default: 'display: block',
},
},
mounted() {
;(window.adsbygoogle = window.adsbygoogle || []).push({})
},
}
</script>