tufanv Expert Licensed User Longtime User May 29, 2019 #1 Hello, Rewarded ads tutorial was written by Erel before admob was offering rewarded ads so he says we need a 3rd party. But now admob offers rewarded ads , so can we use that tutorial with the admob the provider? Thanks
Hello, Rewarded ads tutorial was written by Erel before admob was offering rewarded ads so he says we need a 3rd party. But now admob offers rewarded ads , so can we use that tutorial with the admob the provider? Thanks
tufanv Expert Licensed User Longtime User May 30, 2019 #2 tried it but it gives error: Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid mediation adtype returned.} Can we make it work with admob as the provider not without mediation ? Upvote 0
tried it but it gives error: Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid mediation adtype returned.} Can we make it work with admob as the provider not without mediation ?
Erel B4X founder Staff member Licensed User Longtime User May 30, 2019 #3 The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work. Upvote 0
The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work.
tufanv Expert Licensed User Longtime User May 30, 2019 #4 Erel said: The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work. Click to expand... I did like that, I have added a rewarded ad unit from admobg, and initailized with that app id. I get this error : Code: Copy Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid Upvote 0
Erel said: The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work. Click to expand... I did like that, I have added a rewarded ad unit from admobg, and initailized with that app id. I get this error : Code: Copy Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid
tufanv Expert Licensed User Longtime User May 30, 2019 #5 Erel said: The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work. Click to expand... I have tried it with adrequestbuilder and it worked now ! Thanks Upvote 0
Erel said: The code itself doesn't depend on mediation. You just need to pass the correct unit id and it should work. Click to expand... I have tried it with adrequestbuilder and it worked now ! Thanks
tufanv Expert Licensed User Longtime User May 30, 2019 #6 No, there is a problem with this. It only works if the device is added as test device with builder.addtestdevice, otherwise it always give an error below and I cant find anything about this error on the internet: Code: Copy Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid mediation adtype returned.} Upvote 0
No, there is a problem with this. It only works if the device is added as test device with builder.addtestdevice, otherwise it always give an error below and I cant find anything about this error on the internet: Code: Copy Failed to receive ad: Error Domain=com.google.ads Code=7 "Invalid mediation adtype returned." UserInfo={NSLocalizedDescription=Invalid mediation adtype returned., NSLocalizedFailureReason=Invalid mediation adtype returned.}