Steemアプリケーションに広告

shogo(68)
Published in
#japanese
Words
74
Reading
1 min
7y
Listen to this post
~1 min

ad.png

こんにちは、 shogo@shogoです。

Cryptoの価格低迷により、Steemit, TasteemやPartikoなどが広告を張るようになりました。

そこでNuxtアプリケーションにおいて、Google Adの張り方について少し調べてみました。

私が広告を張るとしたら、全ページには張らず、Supportページというものを作ってそこだけに張ると思います。

Partikoがそれに近いです。

nuxt-communityによる、google-adsense-moduleをインストール

npm install --save @nuxtjs/google-adsense

nuxt.config.js


{
  modules: [
    ['@nuxtjs/google-adsense', {
      id: 'ca-pub-********'
    }]
 ]
}

********には、自分のサイト運営者IDを入力します。

support.vue


<template>
  <adsbygoogle />
</template>

localhostでテストしてみました。
ad.png


ブラウザのBraveを使えば広告は表示されないですが、Steemアプリケーションにおける広告についてどう思われますか??

ending.gif

Steemアプリケーションに広告 | Ecency