admob - Custom native ads in android app -


my application have google ads sdk implemented, , able display campaign in application - half of ad module done :)

however, besides handling ads serving google dfp, need handle native ads external url (ad details fetched server). there way configure google dfp fetch native ad custom url? need similar vast ad request, can provide url ad network, , dfp rest of job (dfp handle request between ad network , end user).

this may you:

adloader adloader = new adloader.builder(context, "/6499/example/native")     .forappinstallad(new onappinstalladloadedlistener() {         @override         public void onappinstalladloaded(nativeappinstallad appinstallad) {             // show app install ad.         }     })     .forcontentad(new oncontentadloadedlistener() {         @override         public void oncontentadloaded(nativecontentad contentad) {             // show content ad.         }     })     .withadlistener(new adlistener() {         @override         public void onadfailedtoload(int errorcode) {             // handle failure logging, altering ui, etc.         }     })     .withnativeadoptions(new nativeadoptions.builder()             // methods in nativeadoptions.builder class can             // used here specify individual options settings.             .build())     .build(); 

you can find full "tutorial" here.


Comments