Basic Adview Tutorial

1. Using SDK Manager to update Google Play Services
2. Import (or create project) the library project “{$installer}\sdk\extras\google\google_play_services\libproject\google-play-services_lib” into workspace.
3. Create your own app, and setting to use the library like the following:


4. Add the following sample code:

    final AdView mAdView = (AdView) findViewById(;
        RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mAdView.getLayoutParams();
        params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
        AdRequest adRequest = new AdRequest.Builder()


Note: After finish, you will see something like the following:


Happy adverting 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s