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

  • Home
  • SEARCH
  • 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 7516739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:13:42+00:00 2026-05-30T01:13:42+00:00

I am curious how to load a webview when clicking on a mopub ad.

  • 0

I am curious how to load a webview when clicking on a mopub ad. By default the ad is opening a browser. There is very little documentation on this and I haven’t been able to find any examples.

I instantiate the AdView class that I found in the mopub api as it seems like it should do what I want but to no avail. And I’m still not sure how to switch the ad click from browser to webview.

Also, getClickThroughUrl() returns null. Mopub is storing the url though because the page opens in a browser. So how do I properly retrieve the URL?

Here’s my code:

mAdView.setAdUnitId(MOPUB_SALES_LIST_ID);
mAdView.loadAd();

mAdView.setOnAdLoadedListener(new OnAdLoadedListener() {
       public void OnAdLoaded(MoPubView mpv) {
          adPopupLayout.setVisibility(View.VISIBLE);
    }
});

mAdView.setOnAdClickedListener(new OnAdClickedListener() {
    @Override
    public void OnAdClicked(MoPubView m) {
        AdView adview = new AdView(getApplicationContext(), mAdView);
        adview.loadUrl(m.getClickthroughUrl());

       }

});
  • 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-30T01:13:44+00:00Added an answer on May 30, 2026 at 1:13 am

    This is not very easy. You will have to make changes in the mopub SDK.

    In the AdView class, you need to change the showBrowserForUrl() to load a webview instead of browser.

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

Sidebar

Related Questions

Just curious if there is an easy way to load more than one Gemfile
I'm sure this problem has been solved before and I'm curious how its done.
Just curious if there's an easy way to add functions to the $(window).load() event
I'm curious if there exists a method to intentionally slow the page load? I'm
I am configuring a load test and am curious/confused on settings. I am testing
Curious, what happens when you return keyword this from a struct in C#? For
Curious what "Toast" means? Saw this and am curious... Similar Posts How to add
I'm curious about people's opinion's and thoughts about this situation. The reason I'd like
I know there's the LOAD DATA INFILE statement, which allows me to INSERT structured
Curious if anyone has this problem: I save my (embedded) fonts in an external

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.