# AdSense Auto ads

**URL:** <https://meta.discourse.org/t/adsense-auto-ads/94104>\
**Category:** Support\
**Tags:** advertising\
**Created:** [August 7, 2018, 12:16pm UTC](https://meta.discourse.org/t/adsense-auto-ads/94104 "2018-08-07T12:16:36Z")\
**Posts on this page:** 1\
**Showing post:** 36

<div class="post-metadata">

**Author:** ![BobbyZopfan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobbyzopfan/32/149374_2.png) [@BobbyZopfan](https://meta.discourse.org/u/BobbyZopfan)\
**Post date:** [July 13, 2019, 9:33am UTC](https://meta.discourse.org/t/adsense-auto-ads/94104/36 "2019-07-13T09:33:29Z")

</div>

Since we are supposed to write Auto ADs code on every page we want them to display on, how can I write auto ADs code to all pages of Discourse.

And equally important is the fact that auto ADs code is `7859204789981798 (not real)` this long (and this is exactly same as my ADSense Publisher code), but I’ve read that Discourse expects 10 Digits AD codes. So for Auto ADs to work, how and where do I use this 16 digit code given by Ad Sense Auto ADs?

---

_[View the full topic](https://meta.discourse.org/t/adsense-auto-ads/94104)._
