WordPress.org

Ready to get started?Download WordPress

Forums

Advertising Manager
Documentation Missing for adding ad code to template files (16 posts)

  1. murphian446
    Member
    Posted 3 years ago #

    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

  2. murphian446
    Member
    Posted 3 years ago #

    Any Insight?

    I've been using the code [ad#adname] on my template. Is that right? I can't find the documentation for this.

  3. blackriver
    Member
    Posted 3 years ago #

    Same issue here. Looks like OpenX changed their URL structure and all of the documentation moved somewhere.

  4. blackriver
    Member
    Posted 3 years ago #

    From what I understand, [ad#adname] would go inside the actual post/page content and not the template file.

  5. blackriver
    Member
    Posted 3 years ago #

    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'); ?>

  6. murphian446
    Member
    Posted 3 years ago #

    Just wanted to say thanks to blackriver, this was exactly what i was looking for.

  7. BanditSiix
    Member
    Posted 3 years ago #

    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.

  8. chp2009
    Member
    Posted 3 years ago #

    This code isn't working for me.
    Anyone have a solution..?

  9. blackriver
    Member
    Posted 3 years ago #

    If anyone needs help with this you can email me at ilya[at]blackriverweb[dot]com

  10. robototitico
    Member
    Posted 3 years ago #

    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

  11. blackriver
    Member
    Posted 3 years ago #

    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/

  12. MtnXfreeride
    Member
    Posted 3 years ago #

    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.

  13. blackriver
    Member
    Posted 3 years ago #

    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.

  14. bzmillerboy
    Member
    Posted 3 years ago #

    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

  15. Cultivate
    Member
    Posted 3 years ago #

    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.

  16. jlynch401
    Member
    Posted 3 years ago #

    Thank you Black River -- This clarified the code placement for me!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic