Comments (9)
@OURABIG please share what exactly errors you have
from defold-extension-unity-ads.
@OURABIG please share what exactly errors you have
well everything i can't even setup the ads or initialize them i just got confused to do it
from defold-extension-unity-ads.
Did you see the example in this repo?
from defold-extension-unity-ads.
Did you see the example in this repo?
yes of course and i didn't understand a lot it's a bit advance what should i create first
from defold-extension-unity-ads.
you said :
i always have errors
What kind of errors do you have?
The install process is simple as:
- initialize
- wait when initialization is done
- show ads
from defold-extension-unity-ads.
you said :
i always have errors
What kind of errors do you have? The install process is simple as:
* initialize * wait when initialization is done * show ads
so i add the direcrly in .gui_script no need to another script
from defold-extension-unity-ads.
you said :
i always have errors
What kind of errors do you have? The install process is simple as:
* initialize * wait when initialization is done * show ads
i add initialize function and unity ads code then i go when button is clicked show ads is this what i need to do
from defold-extension-unity-ads.
- Initialize SDK with callback (third parameter
isDebug
):
https://github.com/AGulev/DefVideoAds/blob/abaeb8f6902457c638b3b08ab4e69ee567dd8b79/example/ui.gui_script#L217
Here is an example of the callback function:
https://github.com/AGulev/DefVideoAds/blob/abaeb8f6902457c638b3b08ab4e69ee567dd8b79/example/ui.gui_script#L76-L189
- Wait for
unityads.EVENT_COMPLETED
inunityads.MSG_INIT
:
- When it's done, you are able to use ADS functions. First of all you need to load ADS (in this function you use
placementId
of your AD as the first/only parameter):
- When loading is done, you'll get
unityads.EVENT_LOADED
for message_idunityads.MSG_LOAD
in the callback:
- Now you can show ADS (in this function you use
placementId
of your AD as the first/only parameter):
- For the
show()
function you should use thismessage_id
in the callback:
https://github.com/AGulev/DefVideoAds/blob/abaeb8f6902457c638b3b08ab4e69ee567dd8b79/example/ui.gui_script#L94-L109
from defold-extension-unity-ads.
Also, you can take a look this ads_wrapper , maybe it will be easier for you.
from defold-extension-unity-ads.
Related Issues (20)
- UnityAds SDK new version cause game to Crash HOT 6
- Unity ANR's HOT 1
- Unity ANR's HOT 1
- Add `Load` API when it releases from closed beta
- Allow NSUserTrackingUsageDescription to be configurable HOT 3
- Allow SKAdNetworkItems in Info.plist to be configurable HOT 1
- Refactoring
- `unityads.load()` in `script_api`
- Android: Banner ads cutout in phone safe area HOT 3
- Add new API for Privacy consent and data APIs
- Redundant define for DLIB_LOG_DOMAIN HOT 1
- [4.2.1] Crash after rewarded video on Android HOT 5
- [4.4.0] Android init: Creating external cache directory failed HOT 8
- AndroidManifest.xml modification HOT 1
- iOS Simulator Build Target HOT 2
- 4.9.3 Crashes with a banner load request HOT 1
- Crashes game on very first run HOT 11
- Conflict with Defold 1.2.155 updates HOT 2
- Receiving Multiple Callbacks on AdClose event . HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from defold-extension-unity-ads.