Adaptor AdMob - StartApp [PDF]

  • Author / Uploaded
  • dafa
  • 0 0 0
  • Suka dengan makalah ini dan mengunduhnya? Anda bisa menerbitkan file PDF Anda sendiri secara online secara gratis dalam beberapa menit saja! Sign Up

Adaptor AdMob - StartApp [PDF]

 Mengajukan permohonan StartApp › SDK › Android

Masuk

Adaptor AdMob StartApp Tech

Pembaharuan Terakhir: 24 Juli 2020

5 0 231 KB

Report DMCA / Copyright

DOWNLOAD FILE


File loading please wait...
Citation preview

 Mengajukan permohonan StartApp › SDK › Android



Masuk



Adaptor AdMob StartApp Tech



Pembaharuan Terakhir: 24 Juli 2020 02:52



Panduan ini ditujukan bagi Penayang yang tertarik untuk mengintegrasikan SDK Android StartApp menggunakan AdMob sebagai jaringan mediasi.



CATATAN: Contoh kode dalam dokumen ini dapat disalin / ditempelkan ke kode sumber Anda Jangan ragu untuk melihat Proyek Sampel kami untuk membantu Anda selama proses integrasi. Jika Anda memiliki pertanyaan, hubungi kami melalui  [email protected]



Asumsi: ADMOB DITETAPKAN SEBAGAI JARINGAN MEDIASI ANDA Panduan berikut mengasumsikan Anda sudah memahami Jaringan Mediasi AdMob dan telah mengintegrasikan SDK Iklan Seluler Google ke dalam aplikasi Anda dengan setidaknya satu Unit Iklan. Jika tidak, mulailah dengan membaca artikel berikut untuk penjelasan langsung tentang apa itu mediasi, cara menggunakan UI Mediasi AdMob, dan petunjuk tentang cara menambahkan kode mediasi AdMob ke dalam aplikasi Anda.



Ikhtisar Mediasi:  support.google.com/admob/answer/2413211 Petunjuk:  https://developers.google.com/admob/android/mediation







APLIKASI ANDA DITENTUKAN DI AKUN STARTAPP ANDA Pada titik ini kami berasumsi bahwa Anda telah menambahkan aplikasi Anda ke akun StartApp, jika belum, ikuti langkah-langkah berikut: 1. Masuk ke akun Penerbit StartApp Anda  2. Add your application and get its App ID 3. Download the StartApp In-App SDK For any questions or difficulties during this process, please contact us via [email protected]



YOU HAVE INTEGRATED THE STARTAPP IN-APP SDK V.4.5.0 AS WELL AS YOUR DESIRED AD FORMATS. Before you can integrate the mediation adapter, you need to make sure you have integrated the StartApp SDK V.4.5.0 as well as the Ad Formats you wish to monetize.  In case you haven't, please start from the steps described on the following SDK integration guide



NOTES: Note that this AdMob adapter is only comptible from StartApp SDK V.4.5.0



Step 1, Integrating the AdMob Mediation Adapter YOU CAN ADD THE ADMOB ADAPTER VIA GRADLE JCENTER DEPENDENCY 



dependencies{ implementation 'com.startapp:inapp-sdk:4.5.0'



implementation 'com.startapp:admob-mediation:2.0.0' }







ANOTHER OPTION TO INTEGRATE THE ADAPTER IS THROUGH .JAVA FILES: StartApps AdMob Adapter is also available on Open Source from GitHub, enabling you download the StartappAdapter.java file and debug issues in case you would like to do so.  For this method, please download the file and add it to your project and change the package path at the top of this file (from: com.startapp.mediation.admob to your own path).



NOTES: Please use only one of the options mentioned above 



Step 2, Configure Mediation Settings Please log in to your AdMob account in order to add StartApp to the mediation configuration.  In case you have an existing mediation group to which you would like to add StartApp to, you can go ahead and do so. Otherwise, please follow the following steps to create a new mediation  group. 1.  Click on the "Mediation" link on the side bar menu 



2. Select "CREATE MEDIATION GROUP" 



3. Select the Ad Format you are looking to begin with and "Android as your platform"







4. Please Name your mediation Group and Select the relevant Ad Units (existing from previous configuration in your App).



Step 3, Add Custom Event  In your Mediation Group go ahead to define the relevant custom event. 



  Please select the Label Name as: StartApp  Define the eCPM as expected from the StartApp Network. (note that this will impact the level of the Waterfall in which the StartApp SDK will be called)



Step 4, Configure StartApp Ad Units On the next screen: "Map ad units: StartApp" please define the following Class Name:  com.startapp.mediation.admob.StartappAdapter



Step 5, AdMob Ad Unit advanced Configuration There are several parameters for each Ad Unit which can be configured from the AdMob Portal or from the code.  All the parameters mentioned below are optional and should be set based on your monetization strategy and criteria.



NOTES:



Everything defined from the AdMob Portal will override the parallel configuration made through the code.







All configurable parameters must be set in Json format and under the relevant custom event class, note that you can choose to configure non to any of the available parameters.



INTERSTITIAL SETTINGS:  Through the AdMob Portal:



{adTag:'interstitialTagFromServer', interstitialMode:'OVERLAY', minCPM



Through the code:



final Bundle extras = new StartappAdapter.Extras.Builder() .setAdTag("interstitialTagFromAdRequest") .setInterstitialMode(StartappAdapter.Mode.OFFERWALL) // can be .muteVideo() .setMinCPM(0.01) .toBundle(); interstitial.loadAd(new AdRequest.Builder() .addCustomEventExtrasBundle(StartappAdapter.class, extras) .build());



BANNER SETTINGS:  Through the AdMob Portal:



{adTag:'bannerTagFromServer', minCPM:0.02, is3DBanner:false}



Through the code:



final Bundle extras = new StartappAdapter.Extras.Builder()







.setAdTag("bannerTagFromAdRequest") .enable3DBanner() .setMinCPM(0.01) .toBundle(); banner.loadAd(new AdRequest.Builder() .addCustomEventExtrasBundle(StartappAdapter.class, extras) .build());



REWARDED VIDEO SETTINGS:  Through the AdMob Portal:



{adTag:'rewardedTagFromServer', minCPM:0.02, muteVideo:false}



Through the code:



final Bundle extras = new StartappAdapter.Extras.Builder() .setAdTag("rewardedTagFromAdRequest") .muteVideo() .setMinCPM(0.01) .toBundle(); rewarded.loadAd(new AdRequest.Builder() .addNetworkExtrasBundle(StartappAdapter.class, extras) .build(), loadCallback);



NATIVE SETTINGS:  Available sizes are: SIZE72X72, SIZE100X100, SIZE150X150, SIZE340X340, SIZE1200X628, SIZE320X480, SIZE480X320







NOTES:



The code sample below uses a specific AdSize as a sample,  you can replace the sizes on the sample code with any of the supported AdSizes by StartApp



Through the AdMob Portal :



{adTag:'nativeTagFromServer', minCPM:0.02, nativeImageSize:'SIZE150X15



Through the code:



final Bundle extras = new StartappAdapter.Extras.Builder() .setAdTag("nativeTagFromAdRequest") .setMinCPM(0.01) .setNativeImageSize(StartappAdapter.Size.SIZE72X72) .setNativeSecondaryImageSize(StartappAdapter.Size.SIZE150X150) .toBundle(); loader.loadAd(new AdRequest.Builder() .addCustomEventExtrasBundle(StartappAdapter.class, extras) .build());



  CONGRATULATION - THAT'S IT! YOU MAY NOW RUN YOUR APP AND SEE STARTAPP ADS IN ACTION.    



Was this article helpful?  Iya



 Tidak