Closed jamiecarter7 closed 5 years ago
The thing that was throwing me off is the style block inside the ins block
I did some digging and you set the advert type using data-ad-format="auto" [auto, rectangle, vertical, horizontal]
You can create PR if need improvement in this library @jamiecarter7
@jamiecarter7 thanks for your answer.. indeed if you only specify the slot it defaults to the "auto" ad-format and ignores the fixed size you have set on Adsense.. setting 'horizontal' for my leaderboard and 'rectangle' for my rectangles solved the problem.. this should at least be updated in the documentation
Can you add on the docs @vesper8?
@mazipan done: https://github.com/mazipan/vue-google-adsense/pull/60
Released on 1.8.0
Im having a weird issue where I am using a set size ad unit (200px x 200px).
I have set the wrapper of this advert at height 400px.
I have used the correct data-ad-slot code where I have set this slot only to give 200x200, yet when loading the site im getting an advert 600px height created.
<ins data-ad-client="REDACTED" data-ad-slot="REDACTED" data-ad-test="" data-ad-format="auto" class="adsbygoogle" style="display: block; height: 600px;" data-adsbygoogle-status="done">