Google AdSense
JoomDIY can show one Google AdSense ad in its project lists. You need an approved AdSense account with an ad unit.
Set it up
- In your AdSense account, create a display ad unit. Note the publisher ID (it starts with
ca-pub-) and the slot number of the unit. - In the administrator, go to Components > JoomDIY and click Options.
- Open the AdSense tab.
- Set Use Adsense to Yes.
- Type the publisher ID in Ad Client, for example
ca-pub-123456789978. - Type the slot number in Ad slot.
- Choose the size in Ad type.
- Choose where the ad shows, then click Save & Close.
Options
| Option | What it does | Default |
|---|---|---|
| Use Adsense | Turns the ad on or off everywhere. | Yes |
| Show ad in profile | Shows the ad in the project lists of the member page. | Yes |
| Show ad in items list | Shows the ad on the List All DIYs page. | Yes |
| Show ad in items list by category | Shows the ad on category pages. | Yes |
| Show ad in items search | Shows the ad in the search results. | Yes |
| Ad type | auto lets Google choose the size. The other values are fixed sizes in pixels: 728x90, 336x280, 320x100, 300x600 and 300x250. | 728x90 |
| Ad Client | Your publisher ID. | Empty |
| Ad slot | The slot number of your ad unit. | Empty |
Use Adsense is Yes by default but nothing useful shows until you fill in Ad Client and Ad slot. If you do not use AdSense, set Use Adsense to No, so no empty ad box takes a place in your lists.
Where the ad shows
The ad takes the last place of the first row of a project list. With Nb Cols set to 4, the first row shows three projects and the ad. There is one ad per list page.
Ad type auto fits best in a column. The fixed sizes 728x90 and 336x280 are wider than one column on most layouts, so pick auto or 300x250 unless your list has one column.
Privacy
The ad code loads adsbygoogle.js from Google on every list page where the ad shows. Google sets its own cookies. Add AdSense to your cookie notice and privacy policy.