Update class ProtocolAds to compatible with more Ads SDKs.

1. Update C++, OC & Java code of ProtocolAds.
2. Update JS binding code of ProtocolAds.