Discourse Advertising Plugin (Ads)

Hi @ljpp,

Sorry for the late response. To make this work with AdSense, you need to set both of these (the naming is confusing):

  • adsense_nth_post_code — this is not an ad unit code; it’s the interval: the number of posts between ads (set to 3 = an ad after every 3rd post).
  • adsense_post_bottom_code — the actual AdSense unit number for the between-posts slot, plus a size in adsense_post_bottom_ad_sizes (mobile: adsense_mobile_post_bottom_code + adsense_mobile_post_bottom_ad_size).

These only work if adsense_publisher_code (your publisher ID) is filled — that’s the setting that enables AdSense.

If nothing shows: check that the viewing user isn’t in the adsense_exclude_groups (staff/admins are excluded by default).

Let me know if you have any other questions

1 Like