---json
{
"canonical": ":ad:page",
"page_id": "8a7aj28gfb4dbd4a7wrx7"
}
---
====== What is an ad Page? ======
===== About =====
An ''ad page'' is a page that contains the ''ad snippet'' (ie a bit of code that defines the content of the ''ad'').
You can insert an ''ad page'' (ie an ad) via:
* a [[ad|ad tag]]
* or via the [[inarticle|auto in-article module]]
Because the ''ads'' are stored as page, they are by default added to the index.
You need to set a configuration to prevent it. See [[conf]]
===== How to create an Ad Page =====
This example was done with ''Google Ad Sense'' but all ad network will work the same way and provides you at the end a ''ad snippet''.
* After you have created an ''ad unit'', the ''ad network'' would show you the ''Ad Snippet''. For instance, with ''Google Ad Sense'':
{{docs:ads:ad_sense_snippet.png|}}
* Copy this snippet of code
* Create a page in the '':combostrap:ads'' namespace.
* For a manual insertion via the [[ad|ad tag]] for instance in a sidebar, you could create the page '':combostrap:ads:insidebar''
* For [[inarticle|in-article automatic insertion]], you would create the page '':combostrap:ads:inarticle1'' for the first ''in-article ad''
* Finally, add the snippet between two ''html'' tag. Example: