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 8971605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:59:47+00:00 2026-06-15T17:59:47+00:00

I have been trying to implement Leadbolt ads in my app but I am

  • 0

I have been trying to implement Leadbolt ads in my app but I am unable to set the Adlistener on the Controller. The methods I can add are nothing like the methods described in the pdf.
I can display ads in my app, but cannot use listeners.

This is my code:

 final Activity act = this;
                  myController = new AdController(act, MY_LB_SECTION_ID, new AdListener() {

                    @Override
                    public void onDismissScreen(Ad arg0) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void onLeaveApplication(Ad arg0) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void onPresentScreen(Ad arg0) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void onReceiveAd(Ad arg0) {
                        // TODO Auto-generated method stub

                    }

                  });

                  myController.loadAd();

The error I get is: The constructor AdController(Activity, String, new AdListener(){}) is undefined

This is the code from the pdf file, but these methods seem to be unknown for eclipse:

final Activity act = this;
AdController myController = new AdController(act, 
"MY_LB_SECTION_ID", new AdListener() {
public void onAdLoaded() {
}
public void onAdClicked() {
}
public void onAdClosed() {
act.finish();
}
public void onAdCompleted() {
act.finish();
}
public void onAdFailed() {
act.finish();
}
public void onAdProgress() {
}
public void onAdAlreadyCompleted() {
act.finish();
}
public void onAdHidden() {} // function is deprecated
public void onAdPaused() {
act.finish();
}
public void onAdResumed() {
}
});
myController.loadAd();

Any ideas, what am I doing wrong?
I haven’t added anything to the Manifest.

  • 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-06-15T17:59:48+00:00Added an answer on June 15, 2026 at 5:59 pm

    To Leadbolt:

    It turned out that com.pad.android.listener.AdListener; or com.Leadbolt.AdListener; collided with import com.google.ads.AdListener; which is the AdMob AdListener. That’s why I couldn’t add the import statement.

    You should extend your documentation, so if your listener collides with any other ad networks, how to use it, because it’s not obvious. MobFox is also using com.adsdk.sdk.AdListener.

    To use your AdListener while using other ad networks’ AdListeners, this is how my first line looks like:

    public class MainActivity extends Activity implements AdListener, com.google.ads.AdListener {
    

    The first one is MobFox, the second one is AdMob. I didn’t implement leadbolt’s AdListener, because I am using it in the code:

    AdController myController = new AdController(act, MY_LB_SECTION_ID_BANNER_ALL, new com.pad.android.listener.AdListener() {
    

    This way it’s working.

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

Sidebar

Related Questions

I have been trying to implement a small SERVER - CLIENT app but ran
I have been trying to implement a comment engine in my app (UItableView) but
I have been trying to implement an upgrade plan for my Android app which
I have been trying to implement a GlassPane for my games' in-game HUD, but
Hello guys, I have been trying to implement the DSUM function but failed to
I have been trying for the past two days now to implement Admob ads
I have been trying to implement the delete BST function but I don't know
I am new to design patterns, but I have been trying hard to implement
I have been trying to implement in app billing of google play to my
Hi I have been trying to implement the DBSCAN algorithm for Neo4j, but am

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.