Dynamic Advertising Model for WordPress

Posted on 2011-10-20
Last Modified: 2013-11-28
I am to be soon developing a number of websites with dynamic ad models using Google's DFP service. Ideally I want to develop these websites using WordPress, I was wondering if there was any tips or brilliant plugins to allow me to show generic grouped ad units and specific ad units on different categories, pages and posts in certain categories?

I need a default generic set of advertisments to appear in a few predefined ad slots for example: 2x MPU, 2x Leaderboard etc..

These need to change depending on what category or page/post you are on. The same ads need to show on posts that come from it's parent category, the same applies for sub-categories and pages with sub-pages.

There seems to be no solution out there! Just simple plugins to stick adsense codes into posts randomly it seems..

Now I was thinking, do I add a set of custom fields to posts+pages+taxonomies? However I feel that this would be an ministration nightmare, having to siv through masses of data. However if none were defined there would be a default fallback set.
Question by:bravecreative
    LVL 70

    Accepted Solution

    >> There seems to be no solution out there! Just simple plugins to stick adsense codes into posts randomly
    >> it seems..

    Pretty much.  As with anything, the more specific your needs, the fewer community contributions you will see that match those needs.  From the plugin standpoint, try either:


    but I think Ad Injection is still too simplistic to match what you want.  The former has a ton of settings and may be a better fit for you.

    Ultimately I think you are going to end up writing your own plugin that does all of the parent/child and category testing you are talking about.
    LVL 2

    Assisted Solution

    You could write a small piece of php code that uses mysql to pull information related to the ads that you want to display.
    you could do something like SELECT `image_name` FROM ads_table WHERE `category` = 'the_category'
    you could pull them at random if you wanted.
    this would also allow you to increment the number column so you could see how many times it is displayed.

    just an idea as an alternative
    LVL 31

    Assisted Solution

    LVL 70

    Expert Comment

    by:Jason C. Levine
    I've requested that this question be closed as follows:

    Accepted answer: 500 points for jason1178's comment http:/Q_27406808.html#37035984

    for the following reason:

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
    LVL 2

    Expert Comment

    why that answer and not any of the other answers?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
    Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
    The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Click on Too…
    An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now