Callback URLs are not called

297 views
Skip to first unread message

Dadkhah

unread,
Sep 12, 2021, 8:43:55 PM9/12/21
to Google Mobile Ads SDK Developers
Hi,
As when as I updated my Unity to version 2020 and then updated admob unity plugin to the latest version, the callback urls of awarded video ads are not called.

That url is called on the previous version (apk file) of my game.
Do you have any idea about it?
If you need more information please tell me which additional information is needed.

Mobile Ads SDK Forum Advisor

unread,
Sep 13, 2021, 4:33:49 AM9/13/21
to it.da...@gmail.com, google-adm...@googlegroups.com
Hi Dadkhah,

Thank you for reporting this to us.

I've tried our sample app with the latest AdMob Unity plugin v6.1.0, and I was able to trigger the ad events. Could you please confirm the following?
  • What version (AdMob and Unity) were you using when the behavior occurs? 
  • What were your previous AdMob and Unity versions?
  • Is the behavior that you reported here occurs on our sample app?
  • Device details being used while testing
Also, would it be possible for you to provide a project (or at least a test project) where the behavior is reproducible via Reply privately to author option? This will greatly help is in our investigation. If the option mentioned doesn't work, you may send the the requested project file directly to mobileads...@gmail.com, then let us know in this thread once it has been sent.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2NTX6t:ref

Dadkhah

unread,
Oct 24, 2021, 5:23:51 AM10/24/21
to Google Mobile Ads SDK Developers
When I open the sample apps in Unity 2020.3.18f1 I get many error like this one:
Assets\Scripts\AdsController.cs(18,7): error CS0246: The type or namespace name 'GoogleMobileAds' could not be found (are you missing a using directive or an assembly reference?)

  • I am using Unity version 2020.3.18f1 and the latest admob (6.1.2)
  • Unfortunately I don't remember my previous unity and admob version. Probably it was Unity 2019 and admob above 5
  • This issue exist on all the devices

Thank you
mobileadssdk در تاریخ دوشنبه ۱۳ سپتامبر ۲۰۲۱ ساعت ۱۷:۳۳:۴۹ (UTC+9) نوشت:
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Oct 25, 2021, 3:09:57 AM10/25/21
to it.da...@gmail.com, google-adm...@googlegroups.com

Hello Dadkhah,

Thank you for reaching out to us.

I work with Teejay and will be assisting you on this. For us to further investigate this, could you please provide us your sample app implementation and steps to replicate on this so that we can check it as we are unable to replicate it in our end? You can send it via Reply privately to author option or send it directly to mobileads...@gmail.com. Kindly inform us on this thread if you sent it directly to the email provided.

On the other hand, I've deleted your post as it contains private information. Below is the copy of your post with scrubbed information.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 

I checked our callbacks. The url is called. But userid and custom data that I have set are not passes to the webpage. 

This is my code

 var ad = new RewardedAd(UnitId);

AdRequest request = new AdRequest.Builder().Build();
var optionBuilder = new ServerSideVerificationOptions.Builder();
optionBuilder.SetUserId(DataStore.Instance.ClientInfo.Username);
optionBuilder.SetCustomData(DataStore.Instance.HardwareSerial);
ad.SetServerSideVerificationOptions(optionBuilder.Build());
Debug.Log("AdmobUserID: "+DataStore.Instance.ClientInfo.Username);
ad.OnAdFailedToLoad += Ad_OnAdFailedToLoad;
ad.OnAdFailedToShow += Ad_OnAdFailedToShow;
ad.OnAdLoaded += Ad_OnAdLoaded;
ad.OnAdOpening += Ad_OnAdOpening;
ad.OnAdClosed += Ad_OnClosed;
ad.LoadAd(request);

 This is the parameters I get from my webpage:

ad_network:xxxxxxxxxxxxxxx
ad_unit:xxxxxxxxxxxxxxxxx
reward_amount:1
reward_item:RemoveBannerAds
timestamp:1635070966823
transaction_id:0005cf169e959c470a96c15223002fef
signature:MEYCIQDg4ezvkEmuPNVjmKx2W6KKL1Cx-OPRdGQo42uKuUmybwIhAMBUGc8HDkO-YOsPwh0d1LD9dyOFI4GC8ak456Z7NnpQ
key_id:3335741209

 But this is the parameters I get from our last version of game:
ad_network:xxxxxxxxxxxxxxxxxxxx
ad_unit:xxxxxxxxxxxxx
custom_data:Unity-e461dbba639f8928a6a93a9598f0946b
reward_amount:1
reward_item:ChanceBox
timestamp:1635071290628
transaction_id:0005cf16b1fcaeee00060e9f62025f99
user_id:Onlygirl70
signature:MEUCIHtzqqJfmCDFayEUWZ5xBUqll2D1UoZXFXHJ2mhvQhKIAiEA0gung9LPs-qF6jkEgwklTZ0KJ6qIn95bIS5dHVFb0eU
key_id:3335741209   



ref:_00D1U1174p._5004Q2NTX6t:ref

Dadkhah

unread,
Dec 13, 2021, 9:53:31 AM12/13/21
to Google Mobile Ads SDK Developers
Hello,
It's been a long time that our game doesn't have any rewarded ad due to this problem. 
Can you please let me know if there are any update about this issue?
thank you

mobileadssdk در تاریخ دوشنبه ۲۵ اکتبر ۲۰۲۱ ساعت ۱۶:۰۹:۵۷ (UTC+9) نوشت:

Mobile Ads SDK Forum Advisor

unread,
Dec 13, 2021, 10:41:43 PM12/13/21
to it.da...@gmail.com, google-adm...@googlegroups.com

Hi Dadkah,

Thank you for your response.

Can you confirm if you're able to receive my previous response that includes some confirmation about your concern? If not yet, let me include it here and kindly confirm and check it at your end.

Can you confirm if you already tried to validate rewarded ad views with server-side verification? Kindly note that, each time a user finishes viewing a rewarded ad, AdMob uses the callback URL you provide when you set up an ad unit to validate the view. You can also troubleshoot SSV errors if the URL came back with an error, review the error message and ensure that you’ve followed the instructions on the Google Developers site for setting up SSV (AndroidiOSUnity). 

As a side note, if you're having trouble receiving private replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly at mobileads-...@google.com referring to this forum thread.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2NTX6t:ref

Dadkhah

unread,
Dec 16, 2021, 3:34:11 AM12/16/21
to Google Mobile Ads SDK Developers
Hello,
Thank you for your response.
Yes I already tried to validate rewarded ad views with server-side verification.
There is no error. The problem is I don't receive user_id in the server side. I receive all other parameters.
I am sure I set the UserId at the client side.

mobileadssdk در تاریخ سه‌شنبه ۱۴ دسامبر ۲۰۲۱ ساعت ۱۲:۴۱:۴۳ (UTC+9) نوشت:

Mobile Ads SDK Forum Advisor

unread,
Dec 17, 2021, 4:06:39 AM12/17/21
to it.da...@gmail.com, google-adm...@googlegroups.com

Hi Dadkhah,

Thank you for your response.

As per checking on the documentation, it mentioned that the User identifier is provided by setUserId. But, if no user identifier is provided by the app, this query parameter will not be present in the SSV callback. This might be the reason why there are some user id's that are not being presented in your end. 

Dadkhah

unread,
Dec 17, 2021, 11:33:40 AM12/17/21
to Google Mobile Ads SDK Developers
I do set the user id by the app. But the user_id parameter is not included in the callback

mobileadssdk در تاریخ جمعه ۱۷ دسامبر ۲۰۲۱ ساعت ۱۸:۰۶:۳۹ (UTC+9) نوشت:

Mobile Ads SDK Forum Advisor

unread,
Dec 20, 2021, 1:18:07 AM12/20/21
to it.da...@gmail.com, google-adm...@googlegroups.com

Hi Dadkhah,

Thank you for your response.

Before we can bring this to the rest of the team, can you please provide us more information from how you're setting the user id and when it doesn't return? This will help us to provide proper context to the rest of the team for further investigation.

Dadkhah

unread,
Dec 20, 2021, 3:22:49 AM12/20/21
to Google Mobile Ads SDK Developers
This is my code to set the User id before showing the ad:

ad = new RewardedAd(AdUnitId);

            AdRequest request = new AdRequest.Builder().Build();
            ad.SetServerSideVerificationOptions(
                new ServerSideVerificationOptions.Builder().
                    SetUserId(username).
                    SetCustomData(serial).Build());
ad.LoadAd(request);

At the server side, I check all the http parameters. All of them are sent by google and are present in the parameters list (like: ad_network, ad_unit, reward_amount, reward_item, timestamp, transaction_id, signature, key_id ), except user_id and custom_data

I hope this information helps. If you need more information please let me know.  
mobileadssdk در تاریخ دوشنبه ۲۰ دسامبر ۲۰۲۱ ساعت ۱۵:۱۸:۰۷ (UTC+9) نوشت:

Mobile Ads SDK Forum Advisor

unread,
Dec 20, 2021, 9:16:26 PM12/20/21
to it.da...@gmail.com, google-adm...@googlegroups.com

Hi Dadkhah,

Thank you for providing the requested information.

Let me share this to the rest of the team for them to provide proper context on this. Rest assured that one of our team will reach out to you.

Dadkhah

unread,
Dec 22, 2021, 6:24:09 AM12/22/21
to Google Mobile Ads SDK Developers
Could you please let me know how long does it take?
We must make a decision about waiting or using another ad network.

mobileadssdk در تاریخ سه‌شنبه ۲۱ دسامبر ۲۰۲۱ ساعت ۱۱:۱۶:۲۶ (UTC+9) نوشت:

Dadkhah

unread,
Jan 21, 2022, 10:28:37 AM1/21/22
to Google Mobile Ads SDK Developers
Hi, Is there any update?
Another guy also have this problem. 
Dadkhah در تاریخ چهارشنبه ۲۲ دسامبر ۲۰۲۱ ساعت ۲۰:۲۴:۰۹ (UTC+9) نوشت:

Mobile Ads SDK Forum Advisor

unread,
Sep 21, 2022, 12:52:28 PM9/21/22
to it.da...@gmail.com, google-adm...@googlegroups.com

Hi Dadkhah,

My name is Nick and I will help you with the SSV callback issue. Can you please provide me with a charles log of the issue? Being that SSV is dependent on a network request from another server, I need to verify that this connection is working correctly. You can follow the instructions for collecting this data.

https://developers.google.com/admob/android/charles
https://developers.google.com/admob/android/network-tracing
https://developers.google.com/admob/ios/network-tracing

Hope this helps,
Nick



ref:_00D1U1174p._5004Q2NTX6t:ref
Reply all
Reply to author
Forward
0 new messages