Implementation
Before you start, follow the steps in our getting started guide to set up the SDK.
Then, add the following code at the top of your activity class in order to import the Facebook Ads SDK:
import com.facebook.ads.*;
Next, instantiate an AdView
object and make a request to load an ad. Since AdView
is a subclass of View
, you can add it to your view hierarchy just as with any other view:
Read full article from Adding Ad Banners in Android
No comments:
Post a Comment