Of course :). I don't have the logcat now (I'm out), but later I will publish it. Yes, I'm creating the app. It's only available in the market for my beta-testers. The SDK is implemented by GPS, but I remember that other error in the logcat is: "No GooglePlayServices found", but It's added as a dependency in Gradle.
private void showAds(){
LinearLayout ads_wrap = (LinearLayout)findViewById(R.id.ads);
anuncio = new AdView(this);
anuncio.setAdUnitId(AD_BLOCK_ID);
anuncio.setAdSize(AdSize.SMART_BANNER);
ads_wrap.addView(anuncio);
// Test nexus 4:
//anuncio.loadAd(new AdRequest.Builder().addTestDevice(NEXUS_4_ID).build());
anuncio.loadAd(new AdRequest.Builder().build());
}
As you can see, the TestDevice code is commented, so I'm loading real ads when I'm debuging :(
And the Gradle's code is:
dependencies {
compile ('com.actionbarsherlock:actionbarsherlock:4.4.0@aar'){
exclude module: 'support-v4'
}
compile 'com.google.android.gms:play-services:4.0.+'
compile 'com.android.support:support-v4:19.0.1'
compile group: 'ly.apps', name: 'android-rest', version: '1.2-SNAPSHOT'
compile fileTree(dir: 'libs', include: '*.jar')
}
Thanks you :)