c# - Admob WP8 System.UnauthorizedAccessException -
i developing wp8 app using vs2012. wish add admob banner ads, unfortunately raising exception causing app freeze. catch admob exception, had disable 'just code' vs2012 setting, , after executing following code, 'system.unauthorizedaccessexception: access denied' @ last line.
_adcontrol = new adview { format = adformats.smartbanner, adunitid = "ca-app-pub-31231-fake-fake-fake" }; _adcontrol.verticalalignment = verticalalignment.top; _adcontrol.failedtoreceivead += adcontrolonerroroccurred; adrequest adrequest = new adrequest(); gamepage.layoutgrid.children.add(_adcontrol); _adcontrol.loadad(adrequest);
if enable 'id_cap_identity_device' , 'id_cap_identity_user', google docs state not required, start receiving 'system.exception' instead of 'system.unauthorizedaccessexception'. can not figure out how can fixed, if possible.
Comments
Post a Comment