Hello friends today I am going to show you how to add real ads in sketchware app.
Follow the all steps are given below with images.
Step:1
Go to your project
Step:2
Drag and drop the adview block
Step:3
Go to the event click on event then click on oncreate for setup like that
Step:4
Now setup block like that click on puzzle button
Step:5Go to the components
Setp:6
Click on add component
Step:7
Add interstial
Step:8
Set name for interstitial ad
Warning if you setuping the name for interstitial ad please don set name like "ad"
This name is added in code somewhere choose another name
Step:9
Now just drag and drop the interstitialad create and load like that
And then go to the operator and drag and drop add source code
Step:10
Now setup this block like that
ia = new InterstitialAd(getApplicationContext()); ia.setAdListener(_ia_ad_listener); ia.setAdUnitId("ca-app-pub-xxxxxxxxxxxxxx/xxxxx"); ia.loadAd(new AdRequest.Builder().build())
Step:11
Now setup this block like that
Step:12
For advance when device online or offline
Its needed
Go to the components
In interstitial ad component goto the on adload just drag and drop this blocks
Step:14
Click on the on adload faild
And setup block like that ok i dont explain that because i was boared😅😅🙄🙄
Post a Comment