AppLovin plugin - User Id in server callback

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

Engineering is looking into this.

Rob

Hello there.

You are correct, that is currently missing.

I will get this added asap.

Thank you

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 :slight_smile:

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 :slight_smile:

Thanks for the reminder!

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. 

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

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. 

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. 

We’re working with Applovin on this.

Just waiting on them getting back to me.

Thanks

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"})

This is great, thank you for your help!

No problem. Let me know how you get on.