<template>
  <AdSingle
    :ad="getContentAdID"
    :showTag="false"
    :showCloseIcon="false"
    class="adsense-container" />
</template>
<script>
import AdSingle from '@/components/ad/Ad'
export default {
  name: 'Adsense',
  components: {
    AdSingle
  },
  computed: {
    getContentAdID () {
      return `equity_mobile_vip_${this.type}_code`
    }
  },
  data () {
    return {
      type: 'buy'
    }
  },
  created () {
    this.getQuery()
  },
  methods: {
    getQuery () {
      this.type = this.$route.query.type || 'buy'
    }
  }
}
</script>
<style lang="scss">
.adsense-container {
  margin-bottom: 8px;
}
</style>
