Intermediate
Advanced Download
Add ads to the Advanced Download page for Google Adsense
Add left and right ad code to the Advanced Download page, including the fix if Google Adsense conflicts with the default XenForo display.
Updated 1 min read By the D.C Style team
On this page
Where ads show
- The page has a left ad and a right ad.
- Ads on the download page are one use of the add-on.
Add ad code in the options
- The add-on has options for the left and right ads: DC_AdvancedDownload_adLeft and DC_AdvancedDownload_adRight.
- Explain where to paste code once the option labels are confirmed.
Fix Google Adsense conflicts
- The default XenForo display may conflict with Google Ads.
- Edit the template DC_AdvancedDownload_template.
- Replace {$xf.options.DC_AdvancedDownload_adLeft|raw} with your left ad code.
- Replace {$xf.options.DC_AdvancedDownload_adRight|raw} with your right ad code.
Check the result
- Open a download page and confirm both ads load.
- Note that the template edit replaces the option, so later changes to the option have no effect there.