Hey mammoth,
code related to native plugins ( admob, IAP, etc ) won't run in preview. Additionally you can't test IAP on the XCode simulator (the rules are pretty convoluted), you require a physical device signed into an iTunes testing account ( this is a special type of account you can create on the iTunes connect portal ).