Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
feat: Add ad-region to the fillable props (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Easy987 authored Jul 6, 2021
1 parent b053fd4 commit fee66e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/lib/src/ads/AdsenseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:data-ad-slot="dataAdSlot"
:data-ad-test="dataAdTest"
:data-ad-format="dataAdFormat"
:data-ad-region="dataAdRegion"
:data-full-width-responsive="dataFullWidthResponsive === 'yes'"
/>
<template v-if="isNonPersonalizedAds === 'yes'">
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/ads/InArticleAdsenseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:data-ad-client="dataAdClient"
:data-ad-slot="dataAdSlot"
:data-ad-test="dataAdTest"
:data-ad-region="dataAdRegion"
:data-full-width-responsive="dataFullWidthResponsive === 'yes'"
/>
<template v-if="isNonPersonalizedAds === 'yes'">
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/ads/InFeedAdsenseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:data-ad-client="dataAdClient"
:data-ad-slot="dataAdSlot"
:data-ad-test="dataAdTest"
:data-ad-region="dataAdRegion"
:data-full-width-responsive="dataFullWidthResponsive === 'yes'"
/>
<template v-if="isNonPersonalizedAds === 'yes'">
Expand Down
6 changes: 5 additions & 1 deletion packages/lib/src/utils/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ export default {
dataFullWidthResponsive: {
type: String,
default: 'no'
}
},
dataAdRegion: {
type: String,
default: ''
},
}

0 comments on commit fee66e6

Please sign in to comment.