# Missing code from Adsense?

**URL:** https://meta.discourse.org/t/missing-code-from-adsense/54869
**Category:** Self-hosting
**Created:** [December 28, 2016, 9:24am UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869 "2016-12-28T09:24:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TheAdmin2](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@TheAdmin2](https://meta.discourse.org/u/TheAdmin2)
#### Post date: [December 28, 2016, 9:24am UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869/1 "2016-12-28T09:24:13Z")

</div>

Ok so I followed this tutorial:  
[https://github.com/discourse/discourse-adplugin](https://github.com/discourse/discourse-adplugin)

My code I got looks like this:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/9/89d96445ad9d66510b6d57f00e039cfb461e6b35.jpg)

But I must write in this:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/b/5b732280cc4ed688cadc5c8a297cdfa821d2a079.jpeg)

Where do I get the missing code from?

---

<div class="post-metadata">

### Author: ![TheAdmin2](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@TheAdmin2](https://meta.discourse.org/u/TheAdmin2)
#### Post date: [December 28, 2016, 9:29am UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869/2 "2016-12-28T09:29:37Z")

</div>

Just to clarify, I just got approved by Google Adsense, maybe that is why I have not gotten the other code yet, correct?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [December 28, 2016, 3:53pm UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869/3 "2016-12-28T15:53:29Z")

</div>

Once you’ve created an ad unit, you can get its id from the ad units list:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/d/0df87bed766ce983a76355e1ac4bb4219fe3c6fc.png)

Also make sure the domain of the site where the ads will be shown is added in the “Allow & block ads” \> “Content” section.

---

<div class="post-metadata">

### Author: ![TheAdmin2](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@TheAdmin2](https://meta.discourse.org/u/TheAdmin2)
#### Post date: [December 28, 2016, 9:09pm UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869/4 "2016-12-28T21:09:55Z")

</div>

Thanks for the info, I will use it later.  
They said I had to post the code I got from them on the forum first, I can not make an Ad-Unit before that. So I posted in admin panel under CSS/HTML and “Top”, hopefully this will be ok.
