Add metatdata
Add metatdata
MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnity.m
adapters/Unity/UnityAdapter/GADMAdapterUnity.m
/// Unity Ads Banner wrapper
GADMAdapterUnityBannerAd *_bannerAd;
+ NSString *_uuid;
+ UADSMetaData *_metaData;
+
}
@end
self = [super init];
if (self) {
_networkConnector = connector;
+
+ _uuid = [[NSUUID UUID] UUIDString];
+
+ _metaData = [[UADSMetaData alloc] init];
+
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"create-adapter"];
+ [_metaData commit];
}
return self;
}
return;
}
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"load-interstitial"];
+ [_metaData set:_uuid value:_placementID];
+ [_metaData commit];
+
[[GADMAdapterUnitySingleton sharedInstance] requestInterstitialAdWithDelegate:self];
}
- (void)presentInterstitialFromRootViewController:(UIViewController *)rootViewController {
[_networkConnector adapterWillPresentInterstitial:self];
+
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"show-interstitial"];
+ [_metaData set:_uuid value:_placementID];
+ [_metaData commit];
+
[[GADMAdapterUnitySingleton sharedInstance] presentInterstitialAdForViewController:rootViewController delegate:self];
}

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
/// YES if the adapter is loading.
BOOL _isLoading;
+
+ NSString *_uuid;
+ UADSMetaData *_metaData;
}
@end
if (self) {
_adLoadCompletionHandler = completionHandler;
_adConfiguration = adConfiguration;
+
+ _uuid = [[NSUUID UUID] UUIDString];
+
+ _metaData = [[UADSMetaData alloc] init];
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"create-adapter"];
+ [_metaData commit];
}
return self;
}
return;
}
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"load-rewarded"];
+ [_metaData set:_uuid value:_placementID];
+ [_metaData commit];
[[GADMAdapterUnitySingleton sharedInstance] requestRewardedAdWithDelegate:weakSelf];
}
if (strongDelegate) {
[strongDelegate willPresentFullScreenView];
}
+
+ [_metaData setCategory:@"mediation_adapter"];
+ [_metaData set:_uuid value:@"show-rewarded"];
+ [_metaData set:_uuid value:_placementID];
+ [_metaData commit];
+
[[GADMAdapterUnitySingleton sharedInstance] presentRewardedAdForViewController:viewController delegate:self];
}

Add metatdata

Add metatdata