scttcper / ng2-adsense

Angular Adsense Component
https://ng2-adsense.xmplaylist.com
MIT License
138 stars 24 forks source link

Only one page shows the ads #412

Open fethi-lamraoui opened 4 years ago

fethi-lamraoui commented 4 years ago

I’m trying to add many ads on different pages, by only the one page is showing the ads, is there any workaround?

Ideki commented 4 years ago

Do you have a lot of text content on the other pages?

I had the same issue. It looks like only horizontal ads are shown with default sizes. If you want vertical ads, you need to specify a width and height like this:

<ng-adsense [adSlot]="yournumber" [adFormat]="'auto'" [fullWidthResponsive]="true" [width]="120" [height]="600"></ng-adsense>

just with that I was able to get ads on each page.

As for ads size, you should refer to the following links:

https://ppcprotect.com/google-ad-sizes/ https://www.ezoic.com/how-ad-sizes-affect-adsense-earnings/