Ironsource ads in sketchware pro new blocks

Ironsource is well known company in field of mobile app monetisation. Ironsource provides many types of ads formats for example banners, interstitial, offerwalls etc.
The major reason of using ironsource is their offerwall ads. because this is the only one compnay that provides completely working offerwall ads in sketchware.


In today's article i'll discuss about how to use ironsource ads in sketchware. Below are the steps to install ironsource ads in sketchware.


View Area
Thre is no need to add special widget in view area. use any widget such as button or any image or anything else as a listner to load ads. 

Blocks
Blocks are needed to make this project. All the needed blocks and files are provided in our new app "Sketchware Pro Blocks" You can download it from the link.

Event Area
Import he blocks in Sketchware Pro. If you got a problem while importing these blocks then you can read this helpful post. 

OnCreate
In OnCreate, add just one block which is shown in picture.

 Use Your own values in textfield of this block. 

OnClick
Add remaining blocks in onclick event of anything. Use all thoseblocks as shown in picture.
In my Case placement id was DefaultInterstitial But it may be diffrent in yours. so i reccomend to check placement id in your ironsource dashboard. 

Imports
There are some imports for using this feature in your app. You need to import all of them so that you will not face any error. 


com.ironsource.mediationsdk.logger.IronSourceError
com.ironsource.mediationsdk.IronSource
com.ironsource.mediationsdk.sdk.InterstitialListener

AndroidManifiest.xml
Add the following code in androidmanifiest.xml 


<activity
            android:name="com.ironsource.sdk.controller.ControllerActivity"
                        android:configChanges="orientation|screenSize"
                                    android:hardwareAccelerated="true" />
                                    <activity
                                                android:name="com.ironsource.sdk.controller.InterstitialActivity"
                                                            android:configChanges="orientation|screenSize"
                                                                        android:hardwareAccelerated="true"
                                                                                    android:theme="@android:style/Theme.Translucent" />
                                                                                    <activity
                                                                                                android:name="com.ironsource.sdk.controller.OpenUrlActivity"
                                                                                                            android:configChanges="orientation|screenSize"
                                                                                                                        android:hardwareAccelerated="true"
                                                                                                                                    android:theme="@android:style/Theme.Translucent" />

Local Library 
Go to Other block section of Sketchware Pro Blocks app. Then download mediationsdk library. After that import it  in local library folder of sketchware. After installing this library, Go to your project and activate it. 

AppCompact And Design
You need to turn on appcompact and design in your sketchware pro project.

Permissions
android.permission.INTERNET
android.permission.RECEIVE BOOT_COMPLETED
android.permission.ACCESS_WIFI_STATE
android.permission.BLUETOOTH
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_NETWORK_CONDITIONS
android.permission.BROADCAST_NETWORK_PRIVILEGED

Ater doing all hese things, run your project and you'll see real ironsource ads in your app.





Previous Post Next Post