Skip to content
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

Merged
merged 4 commits into from
Apr 8, 2021
Merged

Conversation

alexeyfeskov
Copy link
Contributor

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) and admob.EVENT_IMPRESSION_RECORDED (no cpp-side definition but present in ads.gui_script)

@CLAassistant
Copy link

CLAassistant commented Apr 7, 2021

CLA assistant check
All committers have signed the CLA.


- name: hide_banner
type: function
desc: Temporary hides Banner Ad, banner can be shown again using `admob.show_banner()`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporarily

Copy link
Contributor

@AGulev AGulev left a 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!

`admod.EVENT_EARNED_REWARD`,
`admod.EVENT_COMPLETE`,
`admod.EVENT_CLICKED`,
`admod.EVENT_DESTROYED`"
Copy link
Contributor

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

Copy link
Contributor Author

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.

```lua
function init(self)
if admob then
admob.set_callback(admob_callback)
Copy link
Contributor

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)

Copy link
Contributor Author

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

@AGulev AGulev requested a review from britzl April 7, 2021 19:04
@AGulev
Copy link
Contributor

AGulev commented Apr 8, 2021

Thank you!

@AGulev AGulev merged commit 879a4ff into defold:new-admob Apr 8, 2021
@alexeyfeskov alexeyfeskov deleted the autocomplete-api branch April 8, 2021 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants