murphian446
Member
Posted 1 year 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
murphian446
Member
Posted 1 year 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.
blackriver
Member
Posted 1 year ago #
Same issue here. Looks like OpenX changed their URL structure and all of the documentation moved somewhere.
blackriver
Member
Posted 1 year ago #
From what I understand, [ad#adname] would go inside the actual post/page content and not the template file.
blackriver
Member
Posted 1 year 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'); ?>
murphian446
Member
Posted 1 year ago #
Just wanted to say thanks to blackriver, this was exactly what i was looking for.
BanditSiix
Member
Posted 1 year 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.
This code isn't working for me.
Anyone have a solution..?
blackriver
Member
Posted 1 year ago #
If anyone needs help with this you can email me at ilya[at]blackriverweb[dot]com
robototitico
Member
Posted 1 year 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
blackriver
Member
Posted 1 year 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/
MtnXfreeride
Member
Posted 1 year 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.
blackriver
Member
Posted 1 year 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.
bzmillerboy
Member
Posted 1 year 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
Cultivate
Member
Posted 1 year 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.
jlynch401
Member
Posted 11 months ago #
Thank you Black River -- This clarified the code placement for me!