"own" ad service implementation

Discussion in 'Chit Chat' started by Cableguy, Feb 27, 2015.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi guys...
    this may seem a bit far-fetched, but go along with me just for fun...

    I have an idea for an app... in that app a few services and places will be showcased...
    is it doable (up to medium difficulty) to implement a sort of my own ad service for those targeted by my app to get noticed?

    How would such a system work?
    I was thinking using timed event to retrieve a new ad from the DB, and maybe, just maybe, catch the click event of the banner to do something...

    Any suggestions /opinions?
  2. NJDude

    NJDude Expert Licensed User

    It is not difficult, in fact, I have done it and implemented it on a couple of apps, and yes, you will need a timed event to grab the ads.
    thedesolatesoul likes this.
  3. Cableguy

    Cableguy Expert Licensed User

    Thanks NJ...

    A few more ideas to put on paper...
  4. HotShoe

    HotShoe Well-Known Member Licensed User

    You can never have too many ideas. By the way, it was good to see your name in the b4achat log tonight. Remember that you are always welcome.

    --- Jem
    Peter Simpson and Cableguy like this.
  5. wonder

    wonder Expert Licensed User

    Do you mean, to have your own ads displaying on your own apps? I have something like that going on, I'd be glad to share some code. :)
    Peter Simpson and Cableguy like this.
  6. Cableguy

    Cableguy Expert Licensed User

    exactly that... but for now its just an idea
    I'm having too many ideas these days
  7. wonder

    wonder Expert Licensed User

    In my game Hyperblox, for example, I have two "in-house" ads.
    The first one is displayed once, when you start the app.
    The second one is displayed whenever I want.

    Bear in mind that these ads are nothing more than clickable images. In my case I'm using PNG's because I like transparencies. These ads are fully dynamic, I can change them whenever I want, since they're stored online.

    The updates are done from my PC via FTP (Filezilla). There is also a text file on my server, which controls their behavior. Both ads have an expiration date, an optional hyperlink, a "forced update" option and a "chance of being displayed" in percentage.

    Why do I have this percentage going on? Well that's the clever part, since I'm also using AdBuddiz. :D For example, a 100% chance rate will always display the "in-house" ad instead of the monetization ad. This way I'm able to balance between advertising my own stuff or making money with AdBuddiz. To change this value, all I have to do is to edit the online text file. A 0% value will deactivate the "in-house" ad.

    Assuming that you know how HTTPUtils2 works, here's my system's flowchart:
    Sorry I'm not posting the complete source code. This explanation should however, point you in the right direction. :)
    Last edited: Mar 2, 2015
    Cableguy, inakigarm and Peter Simpson like this.
  8. Peter Simpson

    Peter Simpson Expert Licensed User

    That's a very clever idea Mr Wonder
    wonder likes this.
  9. wonder

    wonder Expert Licensed User

    Thanks!!! :) If you'd rather want a more sophisticated solution, you can always have an ad database and use MySQL instead of a text file.
    This would be a good idea if you have quite a few apps serving several different ads.
  10. Cableguy

    Cableguy Expert Licensed User

    I most probably will be using a Table to manage my ADs... but as I said... only ideas I'm gathering
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice