Skip to content

sdkbox/sdkbox-sample-admob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run sdkbox samples

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:

  1. Sample repo and cocos2dx repo must be in same level directory
+-- sdkbox-cocos2d-x-binary
+-- sdkbox-sample-admob
| +-- cpp
| +-- lua
| \-- js

reward video

If you can not get reward video, please try to set target=android-24 in project.properties file.