-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add autocomplete api #7
Conversation
extension-admob/api/admob.script_api
Outdated
|
||
- name: hide_banner | ||
type: function | ||
desc: Temporary hides Banner Ad, banner can be shown again using `admob.show_banner()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporarily
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! Thank you very much!
Just a couple small things, other than that it's great!
extension-admob/api/admob.script_api
Outdated
`admod.EVENT_EARNED_REWARD`, | ||
`admod.EVENT_COMPLETE`, | ||
`admod.EVENT_CLICKED`, | ||
`admod.EVENT_DESTROYED`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is one more event in code EVENT_JSON_ERROR
, that would be nice to add this even in doc and in example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably 'internal' mark slightly confused me.. But I fully agree that event will be useful for user-specific logging and issues reporting.
extension-admob/api/admob.script_api
Outdated
```lua | ||
function init(self) | ||
if admob then | ||
admob.set_callback(admob_callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it make sense to put init()
function lower than admob_callback()
in case if somebody copy/paste example and try to compile (we can't use function before we defined it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, result of copypaste (was moved from initialization example). Fixed
Thank you! |
Add autocomplete api for Defold Editor with native extension function/constants descriptions and links to AdMob original docs.
Disclaimer: my English is bad, it would be nice to proofread descriptions provided.
Also not sure about
admob.set_privacy_settings()
parameter (seems to be ignored in Android impl) andadmob.EVENT_IMPRESSION_RECORDED
(no cpp-side definition but present in ads.gui_script)