If you are really stuck, you can consider using this ads-library.
http://ragdogstudios.com/shop/adslib-ads-mediation-library-for-corona-sdk/
Might help you if its urgent - I have used their source code before and it works fine, but not 100% sure about Chartboost.