Missing code from Adsense?

AI 生成的摘要

In the Self-hosting category regarding the topic ‘Missing code from Adsense?’, TheAdmin2 sought help after following the discourse-adplugin tutorial. They noted a discrepancy between the code generated by the plugin and the required Google Adsense snippet, questioning if the missing code was due to a delay in receiving the Ad Unit ID after approval. neil clarified that the Ad Unit ID can be retrieved from the ad units list once an ad unit is created, and reminded TheAdmin2 to ensure the site’s domain is added to the ‘Allow & block ads’ > ‘Content’ section. TheAdmin2 responded that they could not create an Ad Unit yet because Google required the code to be posted on the forum first; consequently, they temporarily placed the code in the admin panel under CSS/HTML in the ‘Top’ section while awaiting further instructions.

Ok so I followed this tutorial:
https://github.com/discourse/discourse-adplugin

My code I got looks like this:

But I must write in this:

Where do I get the missing code from?

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

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

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

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.