-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADS not working after updated to latest SDK #418
Comments
Hello,
499 seems to be related to your region. Is your region the US?
|
Thank you for your reply. |
Maybe you can try to implement ads-prime SDK for non-Huawei devices. |
Actually I did, but it did not work on my samsung and oneplus devices |
I just tested it with a Samsung phone and it is working for me. If you want, we can investigate the problem together. You can reopen this issue |
Hello, You can check the LogCat. Ads are shown when you start new game (solo is easiest) and then exit the game after 5 seconds. And btw these spam errors are coming from the SDK. I think the old managers were instances of MonoBehavior and these new ones are not so some editor script is throwing these errors:
|
Hello, On my Huawei Phone(p40 lite) it is working. And I am seeing real ads.
|
Thanks for the update. I could not see ads in my Samsung S21+ even though I checked the "Use Test Ads" checkbox. |
Would you mind sharing the "Use Test Ads" checked APK with me? Maybe I can find the issue by testing it. |
Sure. Here is the dev apk with test ads ON. My interestitial ID is entered without "test" prefix. I'm not sure which is correct |
With this APK it is getting error 3 on both devices.
|
These are the test ad IDs that I used in HMSAdsKitManager:
should they be without the test prefix? I tested with and without test prefix but no ads were shown in any case (the builds I've sent you have the test prefix) |
Your test ID seems wrong. And test prefix included. private const string TestBannerAdId = "testw6vs28auh3";
private const string TestInterstitialAdId = "testb4znbuh3n2";
private const string TestRewardedAdId = "testx9dtjwj8hp";
private const string TestSplashImageAdId = "testq6zq98hecj";
private const string TestSplashVideoAdId = "testd7c5cewoj6"; |
Hello, I tried it but it still refuses to show ads. I remember I changed these default values after my initial tests did not show working ads...so that's not the problem |
I tried the demo but still no test ads are shown. The splash image and splash video are flashing black screen for parts of a second but no actual (test)ad is shown. Here is my AndroidManifest if you see something wrong:
|
These 2 line did not work for me. I delete these 2 line and it is working. <meta-data android:name="com.huawei.hms.version" android:value="2.6.1" />
<provider android:name="com.huawei.updatesdk.fileprovider.UpdateSdkFileProvider" android:authorities="net.boardgamesonline.Rento.huawei.updateSdk.fileProvider" android:exported="false" android:grantUriPermissions="true" /> |
Unfortunately deleting these lines does not solve it for me. I also tried deleting the other ID metadatas for the Huawei SDK..still no ads on my Samsung (tried test ads and prod).
And here is my launcherTemplate.gradle:
And the settings in Unity: |
We put your settings through their paces on several devices. We will keep you updated on the outcome. |
Hello, Following our testing, we did not encounter the Reason:$3 error; however, we did come across various other errors. It is possible that these errors are due to a change in the testID. The error we encountered may differ from error code 3.
This will allow us to determine if the error corresponds to the one we encountered, and if so, we can provide a solution. If not, we will continue our investigation. |
Hello @Andronovo-bit , |
I got it @flashmandv. Could the error you get be different when you use default test ids and when you say "Use Test Ads" ? For example, before you were getting Reason:$3 error for Interstitial ads, could you be getting network error or Reason:$2 error now? If the error has changed, you may probably not be able to see the ads due to another problem. Did you try to change the region in AppGallery after using the default test ids and checking the ""Use Test Ads"" checkbox? The application you gave in this app link contains the following ids and "Use Test Ads" is checked. Is this is right? |
can you share the sdk which is working on samsung phone if yes |
So I updated our game to v 2.3.2 with Unity 2020.3
I still could not make the ads work (trying with Interestitial).
Here is my logcat:
As you can see from the logs ad failed:
and this class is not found:
I also had Huawei ID login problem, but fixed it by adding this to my mainTemplate.gradle
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
Is this an issue with missing gradle implementation line?
Please help
The text was updated successfully, but these errors were encountered: