copy the code in plugin admob as base