No visible @interface for 'GADNativeCustomTemplateAd' declares the selector 'setCustomClickHandler:'

278 views
Skip to first unread message

6410...@qq.com

unread,
Jul 17, 2018, 2:48:31 AM7/17/18
to Google Mobile Ads SDK Developers
Hi I am having this issue while using Google mobile ads with unity3d in xcode
No visible @interface for 'GADNativeCustomTemplateAd' declares the selector 'setCustomClickHandler:'

No visible @interface for 'GADUNativeCustomTemplateAd' declares the selector 'performClickOnAssetWithKey: customClickHandler:'

I am using latest googleMobileAds SDK v3.14.0 and  xcode9.2 .

QQ图片20180717144729.png
QQ图片20180717144751.png

mobileadssdk-a...@google.com

unread,
Jul 17, 2018, 5:37:42 AM7/17/18
to 6410...@qq.com, Google Mobile Ads SDK Developers
Hi,

For us to investigate on our end, could you provide to us privately (using Reply privately to author option) a copy of your Unity project (or at least a test project) where issue is reproducible?

Regards,
Ivan Bautista
Mobile Ads SDK Team

Canh

unread,
Jul 17, 2018, 1:13:46 PM7/17/18
to Google Mobile Ads SDK Developers
Hi,
I've had a quick check on the code and see that GADNativeCustomTemplateAd only declares performClickOnAssetWithKey with 2 parameters:

- (void)performClickOnAssetWithKey:(NSString *)assetKey

                customClickHandler:(dispatch_block_t)customClickHandler;

But in GADUNativeCustomTemplateAdsetCustomClickHandler 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];

}

Canh

unread,
Jul 17, 2018, 2:11:10 PM7/17/18
to Google Mobile Ads SDK Developers
Solution: run the following commands in the terminal:
 
pod repo remove master
pod setup 
And then a fresh Unity export. 

Ajay Kumar

unread,
Jul 18, 2018, 5:12:29 AM7/18/18
to Google Mobile Ads SDK Developers

mobileadssdk-a...@google.com

unread,
Jul 18, 2018, 3:03:58 PM7/18/18
to Ajay Kumar, Google Mobile Ads SDK Developers
Hello Ajay, 

Could you elaborate on the issue you're facing along with the complete device logs so I can take a look? 

Thanks,
Bharani Cherukuri
Mobile Ads SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

6410...@qq.com

unread,
Jul 18, 2018, 10:20:10 PM7/18/18
to Google Mobile Ads SDK Developers
Thank you for your help, I solved this problem according to your method.
Thanks again
在 2018年7月18日星期三 UTC+8上午2:11:10,Canh写道:

6410...@qq.com

unread,
Jul 18, 2018, 10:20:40 PM7/18/18
to Google Mobile Ads SDK Developers
I am sorry to have something to reply late in these two days.
Thank you very much for your help. I have solved this problem.
Thanks again

在 2018年7月19日星期四 UTC+8上午3:03:58,mobileadssdk-a...@google.com写道:
Reply all
Reply to author
Forward
0 new messages