I have used google admob on another page but i want to use fb audience network banner ads also but its showing error. My code is :
adView = new AdView(BhaktiPlayer.this, "539967309761431_541729399585222", AdSize.RECTANGLE_HEIGHT_250);
// Find the Ad Container
LinearLayout adContainer = (LinearLayout) findViewById(R.id.banner_container);
// Add the ad view to your activity layout
adContainer.addView(adView);
// Request an ad
adView.loadAd();
and showing errors:
Error:(57, 48) error: incompatible types: String cannot be converted to AttributeSet
Error:(64, 15) error: method loadAd in class BaseAdView cannot be applied to given types;
required: AdRequest
found: no arguments
reason: actual and formal argument lists differ in length