Exemplo n.º 1
0
        public static void AddAdEvent(GAAdAction adAction, GAAdType adType, string adSdkName, string adPlacement)
        {
#if UNITY_EDITOR
            if (GAValidator.ValidateAdEvent(adAction, adType, adSdkName, adPlacement))
            {
                addAdEvent((int)adAction, (int)adType, adSdkName, adPlacement);
            }
#elif UNITY_IOS || UNITY_ANDROID
            addAdEvent((int)adAction, (int)adType, adSdkName, adPlacement);
#endif
        }
Exemplo n.º 2
0
        public static void AddAdEvent(GAAdAction adAction, GAAdType adType, string adSdkName, string adPlacement, IDictionary <string, object> fields, bool mergeFields)
        {
            string fieldsAsString = DictionaryToJsonString(fields);

#if UNITY_EDITOR
            if (GAValidator.ValidateAdEvent(adAction, adType, adSdkName, adPlacement))
            {
                addAdEvent((int)adAction, (int)adType, adSdkName, adPlacement, fieldsAsString, mergeFields);
            }
#elif UNITY_IOS || UNITY_ANDROID
            addAdEvent((int)adAction, (int)adType, adSdkName, adPlacement, fieldsAsString, mergeFields);
#endif
        }