0
votes

I am using latest admob version (https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals - the Google Play version) for my application. i wanna set height for my AdView banners (BANNER and SMART_BANNER in AdSize). But i can find out any methods or any ways to set it. I have followed exactly the guide from google admob site.

Thank you.

New edit : This is my implementation :

adView = new AdView(m_context);
adView.setAdSize(AdSize.SMART_BANNER);
adView.setAdUnitId(m_context.getString(R.string.admob_id));

LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
                LinearLayout.LayoutParams.MATCH_PARENT);
wrapper.addView(adView, param);
1

1 Answers