Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeadBolt-Banner Adapter #1

Open
ay1man4 opened this issue Feb 1, 2014 · 0 comments
Open

LeadBolt-Banner Adapter #1

ay1man4 opened this issue Feb 1, 2014 · 0 comments

Comments

@ay1man4
Copy link
Contributor

ay1man4 commented Feb 1, 2014

I found a solution for LeadBolt banner adapter.
For some reason in google AdMob, It does not accept the layout (viewGroup) of Leadbolt if it contains child view (the Ads). So, to solve it we've to extract the ad and remove all childviews from the layout.

Just change onAdLoaded() as below:
@OverRide
public void onAdLoaded() {
Log.d(LeadBoltAdapterTag, "onAdLoaded");
View childView = view.getChildAt(0);
view.removeAllViews();
listener.onReceivedAd(childView);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant