Hello,
I'm new on this forum. Just want to know how to integrate Admob ads on my app.
NOTE: I'm building this app using Buzztouch services (
buzztouch.com)
1. I've added:
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
2. I've added:
private AdView adView;
private static final String AD_UNIT_ID = "INSERT_YOUR_AD_UNIT_ID_HERE"; (also replaced with my ID)
3. I've added:
// Create an ad.
adView = new AdView(this);
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId(AD_UNIT_ID);
But I get error on that red part.
My .java file is different than the one shown as example..
Can someone help me please?
I will attach my .java file for you to see it :)