Title: [Plugin: Advertising Manager] Documentation Missing for adding ad code to template files
Last modified: August 19, 2016

---

# [Plugin: Advertising Manager] Documentation Missing for adding ad code to template files

 *  [murphian446](https://wordpress.org/support/users/murphian446/)
 * (@murphian446)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/)
 * Hello,
 * I can’t seem to figure out how to ad Ad Manager tags to my existing template.
   The widget works great, and the post pull down works great in the html editor,
   but I can’t get it to work for me in my template files. I keep clicking to go
   to the documentation but it just takes me to some weird page with code revisions
   for some other program.
 * Any help is much appreciated.
 * Thanks

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [murphian446](https://wordpress.org/support/users/murphian446/)
 * (@murphian446)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787516)
 * Any Insight?
 * I’ve been using the code [ad#adname] on my template. Is that right? I can’t find
   the documentation for this.
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787591)
 * Same issue here. Looks like OpenX changed their URL structure and all of the 
   documentation moved somewhere.
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787592)
 * From what I understand, [ad#adname] would go inside the actual post/page content
   and not the template file.
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787593)
 * To place the ad in the template file, you have to use the following code:
 * `<?php advman_ad(name); ?>`
 * If you are using OpenX, it seems like a good idea to name the WP ads based on
   the OpenX zones…
 * `<?php advman_ad('zone123'); ?>`
 *  Thread Starter [murphian446](https://wordpress.org/support/users/murphian446/)
 * (@murphian446)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787610)
 * Just wanted to say thanks to blackriver, this was exactly what i was looking 
   for.
 *  [BanditSiix](https://wordpress.org/support/users/banditsiix/)
 * (@banditsiix)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787616)
 * It would be nice to add that to the plugin. Especially for those of us who don’t
   know how to edit the template appropriately.
 *  [chp2009](https://wordpress.org/support/users/chp2009/)
 * (@chp2009)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787628)
 * **This code isn’t working for me.
    Anyone have a solution..?
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787629)
 * If anyone needs help with this you can email me at ilya[at]blackriverweb[dot]
   com
 *  [robototitico](https://wordpress.org/support/users/robototitico/)
 * (@robototitico)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787634)
 * I want to use that php code to put ads in my template. But I want the code to
   rotate all my ads. How do you do this? Thanks
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787635)
 * I don’t think that this plugin supports ads rotation on it’s own. If you use 
   it in conjunction with OpenX, you would do this via a zone.
 * You should try a different plugin:
    [http://wordpress.org/extend/plugins/simple-ads-manager/](http://wordpress.org/extend/plugins/simple-ads-manager/)
 *  [MtnXfreeride](https://wordpress.org/support/users/mtnxfreeride/)
 * (@mtnxfreeride)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787638)
 * hmm, I was hoping I could get a full set of the code to put on other pages of
   my site which are not part of the wordpress blog.
 * Also, it does allow rotation on its own, but you have to name the ad spaces the
   same to make it happen. I think the WP CACHE kind of messes with it though.
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787639)
 * > hmm, I was hoping I could get a full set of the code to put on other pages 
   > of my site which are not part of the wordpress blog.
 * Then you definitely need to use OpenX, and create a Zone, or use direct invocation
   for the specific campaign.
 *  [bzmillerboy](https://wordpress.org/support/users/bzmillerboy/)
 * (@bzmillerboy)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787641)
 * For anyone having issues getting the ad space to show up, make sure you have 
   entered the name correct. I struggled with this as first but found it was due
   to a lower case letter.
 * Example:
    If the name of your ad is “[3] Adsense” in your list.
 * Make sure the code looks like this (case sensitive):
    <?php advman_ad(‘Adsense’)?
   >
 * Hope this helps
 *  [Cultivate](https://wordpress.org/support/users/dpc036/)
 * (@dpc036)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787651)
 * > I want to use that php code to put ads in my template. But I want the code 
   > to rotate all my ads. How do you do this? Thanks
 * To rotate ads simply give them the **same name**, then using the above code <?
   php advman_ad(‘same name’)?> the ads will rotate.
 *  [jlynch401](https://wordpress.org/support/users/jlynch401/)
 * (@jlynch401)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787667)
 * Thank you Black River — This clarified the code placement for me!

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘[Plugin: Advertising Manager] Documentation Missing for adding ad code
to template files’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advertising-manager.svg)
 * [Advertising Manager](https://wordpress.org/plugins/advertising-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advertising-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advertising-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advertising-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advertising-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advertising-manager/reviews/)

 * 15 replies
 * 9 participants
 * Last reply from: [jlynch401](https://wordpress.org/support/users/jlynch401/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-documentation-missing-for-adding-ad-code-to-template-files/#post-1787667)
 * Status: not resolved