Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

AppLovin plugin - User Id in server callback
Started by stanga Apr 04 2016 08:09 PM

14 replies to this topic
monetization applovin
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

I wish to add AppLovin to my Android and iOS apps, however I ran into a problem. 
I saw in the AppLovin dashboard under app settings --> Rewarded Video --> Callback Options that I can add a user id to the server callback:

{USER_ID} is any username you pass the SDK for the user. Note, you must set this for each rewarded video and instructions are in the Rewarded Video section of our docs.

Meaning, the Corona plugin should allow me to add a user id when I show an incentivized video. However, in the corona docs (plugin docsshow function docs) there is no mention of a user id as a possible parameter. 
 
I tried to contact AppLovin, but they said their Corona plugin was build by Corona, so I should contact them about this.
 
This feature is really important, since our server must be able to tell which user to reward. 
Is the Corona team planning on adding this feature?
I assume it's not a very difficult task, and it would allow us to use this plugin. 
 
Thanks


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

Engineering is looking into this.

 

Rob



[TOPIC: post.html]
#3

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Hello there.

 

You are correct, that is currently missing.

I will get this added asap.

 

Thank you



[TOPIC: post.html]
#4

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

That's great to hear!

When do you think it will be available in the plugin?

Thanks



[TOPIC: post.html]
#5

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

That's great to hear!

When do you think it will be available in the plugin?

Thanks

 

Either this week or early next week.

 

Feel free to bump the thread to remind me :)



[TOPIC: post.html]
#6

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

Any progress with this?

I don't mean to rush anyone, I just would love to include this plugin in the next version I'm releasing :)



[TOPIC: post.html]
#7

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Any progress with this?

I don't mean to rush anyone, I just would love to include this plugin in the next version I'm releasing :)

 

Thanks for the reminder!



[TOPIC: post.html]
#8

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

I see the RevMob and inMobi plugin also don't have this feature of adding a user id when showing a rewarded video. Is it possible to add it to those plugins as well?

We really want to take advantage of all the new monetization platforms Corona added recently, but this feature is required for our usage. 



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

I'm going to admit I don't have a lot of experience with all of our ad plugins. But from what I've seen they all have a listener function that will have an event phase of "completed" or something similar. When you get that you know that the user completed whatever requirements the ad vendor needs for a rewarded video. At that point you can reward your user.

 

Some of these ad vendors may not care about a user ID or perhaps their SDK is accessing the Ad vendor ID that the OS provides.

 

Rob



[TOPIC: post.html]
#10

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

What you suggest is only possible if the client can award the user.

However, our game has a server side that awards the users. The whole point of having a server callback option in these monetization platforms is to make sure there is no way to "fool" the server into believing it should award a user when it shouldn't (since there is a third party that send the server the confirmation that the user completed the video).

If the client need to tell the server to give the user the reward, you are stripping all the security of the server side callback, since it would be fairly easy to impersonate a client and "fool" the server into believing they need to award the user.

It's too vulnerable for us, so this means we can't use any of these plugins all together (no way to award the user safely).

 

Also, I have check many monetization platforms, and they all give you an option to add additional data to the server callback - including AppLovin. 



[TOPIC: post.html]
#11

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

Any progress with this? We really want to add more ad providers to our app (we currently use Vungle, but would like to add more), and as I described in my previous reply the current plugin does not support rewarding our users safely. 



[TOPIC: post.html]
#12

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

We're working with Applovin on this.

 

Just waiting on them getting back to me.

Thanks



[TOPIC: post.html]
#13

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Any progress with this? We really want to add more ad providers to our app (we currently use Vungle, but would like to add more), and as I described in my previous reply the current plugin does not support rewarding our users safely. 

 

This has now been implemented.

 

The function you will be looking for is setUserDetails(). The documentation will be updated shortly (waiting for propagation) https://docs.coronalabs.com/daily/plugin/applovin/index.html

 

The plugin update will be live in 1~2 hours from the time of this post.

 

If the docs haven't updated by then, you can use the following snippet to set the userId as you requested:

 

appLovin.setUserDetails({userId = "corona"})


[TOPIC: post.html]
#14

stanga

[GLOBAL: userInfoPane.html]
stanga
  • Contributor

  • 193 posts
  • Corona SDK

This is great, thank you for your help!



[TOPIC: post.html]
#15

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

This is great, thank you for your help!

 

No problem. Let me know how you get on.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: monetization, applovin