How to implement my own custom advertisement in my own android application using predefiend SDK's for ad (like admob etc)

10,922

Solution 1

You can just make a layout to act as your banner ad and include it within your other layouts and then just add an onclick function to the banner.

Or

Use admob for my ads. Admob has "in-house ads" where you can run your ads with in your app for free. You can choose for them to display exclusively and use admob to track the statistics for which ads are being clicked and how often they are being displayed.

http://support.google.com/admob/bin/answer.py?hl=en&answer=1619751

Solution 2

If somebody stumbles up here, I've made up a library for this purpose...
Currently quite in an early stage but can be used in production.
Supports AdDialog, Interstitial & NativeAd format! :)
https://github.com/ItzNotABug/HouseAds

Solution 3

You can do it directly using Admob SDK with something that they call House Ads.

Share:
10,922

Related videos on Youtube

Tarandeep Singh
Author by

Tarandeep Singh

Hi, my name is Tarandeep Singh from Delhi currently living in Hyderabad. I am a software engineer by passion and profession with around 4.5 years of experience working on multiple technologies which includes Java, Salesforce, Android, Mendix, CMS Tools (WordPress, Opencart, Prestashop) and IoT. . I completed my UGC from SUSCET, Tangori (Mohali) in Electronics and Communication but my passion and learning was towards coding and because of that I started learning C++, Java. After completing my UCG, I joined a company as a trainee where I converted my passion to profession. From then till today, I worked on multiple technologies, thanks to companies who gave me opportunities to work. Currently I am working with Salesforce as a Salesforce Demo Engineer where my role is to build demos for our potential customers and AppExchange apps. I am also pursuing my master’s degree in Software Engineering from BITS, Pilani under work integrated program. If I talk about my hobbies, I like bike riding, photography, playing basketball and of course writing code. I also love writing blogs and creating youtube videos to share my experience and knowledge with the community. Connect with me on Youtube (Youtube.SinghTarandeep.com) Email ([email protected]) Twitter (@tdssaini) Linkedin (/tdssaini)

Updated on September 15, 2022

Comments

  • Tarandeep Singh
    Tarandeep Singh over 1 year

    I am working on advertisement integration for my android application, the problem is that I'm having 3 applications live on android app store.

    Therefore I want that my ad SDK will show ad of these 3 applications only in these application. Means 1st application will show ad of only 2 and 3 my application, no other ad, I want to use pre- defined SDK's available on internet (like admob, revmob etc).

    Guys please help me regarding this...

  • Tarandeep Singh
    Tarandeep Singh over 9 years
    Actually the link you provided is for old one, can u please provide me a new one as ad-mob's web page is changed.. And secondly i already tried this "in-house ads" but its not working as in new ad-mob. Apart fro this it also show's an error message to confirm the billing info first.. Please provide a proper procedure to do this.
  • vedi0boy
    vedi0boy over 9 years
    Try his first suggestion
  • Diego
    Diego about 8 years
    @Ronish can you please provide some code example to implement your first option?
  • Pooja
    Pooja almost 4 years
    Good job. I want to use it without json file. Can I upload all required fields in firestore document? Is it possible? Please guide me
  • DarShan
    DarShan almost 4 years
    @Pooja Currently only json format is supported, if you have hosting constraints then you can use Firebase Hosting.. else if you need non-json support, you can fork the library and make your desired changes.