Advanced Download guides
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.

Did this guide help? Thanks! Glad it worked. Sorry about that. What went wrong? Thanks for telling us. We'll use it to improve this guide.

What went wrong?
Need a reply? Open a Advanced Download ticket instead.

Advanced Download

v1.0.9 Patch Level 1 · Free

Download free Product page → Ask about Advanced Download →