No visible @interface for 'GADUNativeCustomTemplateAd' declares the selector 'performClickOnAssetWithKey: customClickHandler:'
I am using latest googleMobileAds SDK v3.14.0 and xcode9.2 .
- (void)performClickOnAssetWithKey:(NSString *)assetKey
customClickHandler:(dispatch_block_t)customClickHandler;
But in GADUNativeCustomTemplateAd, setCustomClickHandler and performClickOnAssetWithKey are called separately:
- (void)performClickOnAssetWithKey:(NSString *)key withCustomClickAction:(bool)customClickAction {
if (customClickAction) {
__weak GADUNativeCustomTemplateAd *weakSelf = self;
[self.nativeCustomTemplateAd setCustomClickHandler:^(NSString *assetID) {
[weakSelf didReceiveClickForAsset:key];
}];
}
[self.nativeCustomTemplateAd performClickOnAssetWithKey:key];
}
Solution: run the following commands in the terminal:
pod repo remove master
pod setup