Iklan Native Admob di Sketchware

This Post Only For Share Resource to Create Admob Native Ads in Sketchware Project

Link Download Layout XML ad_unified

ad_unified.xml

Link Download String XML string values

string.xml

Link Download Style XML style values

style.xml

Code Need Add Manual by Java Editor

//you need manual add if you not implement Interstitial ad
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;


//Import Widget RatingBar for Native Ads
import android.widget.RatingBar;

//import Mobile Ads Initialize
import com.google.android.gms.ads.AdLoader;
import com.google.android.gms.ads.MobileAds;

//Must add to import native ad lib
import com.google.android.gms.ads.formats.MediaView;
import com.google.android.gms.ads.formats.NativeAdOptions;
import com.google.android.gms.ads.formats.UnifiedNativeAd;
import com.google.android.gms.ads.formats.UnifiedNativeAdView;
import com.google.android.gms.ads.initialization.InitializationStatus;
import com.google.android.gms.ads.initialization.OnInitializationCompleteListener;


//Variable Unified Native Ad
private  UnifiedNativeAd nativeAd;

 

 

Tutorial 1 - Membuat Project Di Sketchware
Membuat Iklan Native Admob di Sketchware