As I am using Creator and command line sdkbox import I dont see the reward function in the JS bindings. I have copied the code and the libs over from example to my project for iOS and I have rewards & callbacks working. However I am getting nothing on Android. What do I need to copy from example into my creator project for Android?
I have some question buildToolsVersion on Android studio.
I use android studio 2.3.1, buildToolsVersion ‘25.0.2’ and use SDKBOX admob plugin.
When i implement showing rewarded video ads, not working.
Just return isAvailable(“rewarded”) false.
Any problem on android studio 2.3.1, buildToolsVersion 25.0.2?
Update
I know why not show ads.
I have to add third party mediations…
I use Win-7, building on it C++ Cocos projects for Android.
Thanks for the rewarded video support start, but…
Update-2: succeed!
I’ve created new empty project with my current Cocos 3.14.1; so I’ve get full-screen (and portrait; and app doesn’t crashes after playing several landscape videos).
One my problem - my sintax error in Resources\sdkbox_config.json (missed or extra comma).
Another Resources\sdkbox_config.json problem - seems it’s not working without describing all 3 types of advertising (banner, interstitial and rewarded video) - may be because admob::init() automatically tries to load all 3 types of Ad one by another, so i had to use fake interstitial.
Looks like even reward() of the rewarded video works ok.
I see that you’ve updated SDKBOX to version 2.3.13.2 and added the Facebook functionality for sending gifts, but the functions for requesting and sending differ in parameters:
/**
* Ask friends for a gift
*/
static void requestGift(const std::vector<std::string>& invite_ids, const std::string& object_id, const std::string& message);
/**
* Send friend a gift
*/
static void sendGift(const std::vector<std::string>& friend_ids, const std::string& object_id, const std::string& title, const std::string& message, const std::string& additional_data = "");
Could you add the title and additional_data parameters from the sendGift function to the requestGift function in the next patch for version 2.3.13 ?