Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 850617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:17:33+00:00 2026-05-15T07:17:33+00:00

I am a mobile web developer and trying to monetize my traffic with mobile

  • 0

I am a mobile web developer and trying to monetize my traffic with mobile ad services and i have a problem.

First of all to get most of out of your ads you usually need to do server side request to advert company’s servers and there are quite few ad services. Problem starts when you want to use them in one site.

All have different approaches to server side calls and trying to maintain and implement those ad codes becomes pain after a while.

So I decided to write a class system where i can simply create methods for every company and upload it to my site.

So far i have
public Advert class
public AdPublisher class with GetAd method that returns an Advert
public Adservice class that has Service names as enum

I also have converted server request codes of all ad services i use to classes.

It works ok but I want to be able to create an ad service class upload it so that asp.net app can import/recognize it automatically like a plugin system.

As I am new to .net I have no idea where to start or how to do it.

To make thing clear here are my classes

namespace Mobile.Publisher
{

public class AdPublisher
{
    public AdPublisher()
    {
        IsTest = false;
    }
    public bool IsTest { get; set; }
    public HttpRequest CurrentVisitorRequestInfo { get; set; }
    public Advert GetAd(AdService service)
    {
        Advert returnAd = new Advert();
        returnAd.Success = true;

        if (this.CurrentVisitorRequestInfo == null)
        {
            throw new Exception("CurrentVisitorRequestInfo for AdPublisher not set!");
        }
        if (service == null)
        {
            throw new Exception("AdService not set!");
        }



        if (service.ServiceName == AdServices.Admob)
        {
            returnAd.ReturnedAd = AdmobAds("000000");
        }



        return returnAd;

    }

}

public enum AdServices
{
    Admob,
    ServiceB,
    ServiceC
}

public class Advert
{
    public bool Success { get; set; }
    public string ReturnedAd { get; set; }
}

 public partial class AdService
{
    public AdServices ServiceName { get; set; }
    public string PublisherOrSiteId { get; set; }
    public string ZoneOrChannelId { get; set; }

}

private string AdmobAds(string publisherid)
{
//snip
 return "test"
}
}

Basically i want to be able to add another ad service and code like

private string AdmobAds(string publisherid){
}

So that it can be imported and recognised as ad service.

I hope i was clear enough

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:17:33+00:00Added an answer on May 15, 2026 at 7:17 am

    Ths seems like a pretty vague/general question, and considering you mentioned you’re no too familiar with .NET, I thought I’d point you in the direction of the Managed Extensibility Framework. This is an official Micrsoft library designed for creating plugin/add-in systems (it’s like a specialised Inversion of Control framework). Note that in .NET 4.0, it’s actually part of the framework base class library. There’s also a great MSDN page on Add-ins and Extensibility – relating to the System.AddIn namespace – which you may find pretty helpful too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a web and mobile application developer and I prefer to use MVC
I have developed a Mobile application that connect to my Web Servie via RESTful
Many mobile web browsers have some default functionality on image hold. For example, user
I am building mobile web sites with Jquery Mobile. I also have a javascript-based
I am developing a mobile web application in asp.net. I have a button in
I have a jquery mobile web app. On my iPhone when I am on
I am trying to develop the single page in asp.net web mobile application as
I am trying to develop a mobile version of my web application and I
I am trying to develop a non-web application (mobile, non-mobile) for consuming information from
i'm working on a jquery mobile web site. and am trying to use the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.