Steps:
mkdir samples
cd samples
# must clone this repo
git clone --depth 1 https://github.com/sdkbox/sdkbox-cocos2d-x-binary.git
# clone sample repo
git clone --depth 1 https://github.com/sdkbox/sdkbox-sample-admob.git
# run sample with specified language and platform
# eg: cpp and ios
./sdkbox-cocos2d-x-binary/run_sample.sh admob cpp ios
# or
cd cpp && cocos run -p ios
# javascript and android
./sdkbox-cocos2d-x-binary/run_sample.sh admob js android
# or
cd js && cocos run -p android
# <optional> if exists "download-depends.sh" in sample repo, execute it
# ./sdkbox-sample-admob/download-depends.sh
Memo:
- Sample repo and cocos2dx repo must be in same level directory
+-- sdkbox-cocos2d-x-binary
+-- sdkbox-sample-admob
| +-- cpp
| +-- lua
| \-- js
If you can not get reward video, please try to set target=android-24
in project.properties
file.