How can we track when a player clicks on an ad?

374 views
Skip to first unread message

Sergei

unread,
Mar 27, 2022, 11:19:33 AM3/27/22
to Google Mobile Ads SDK Developers
Hello everyone!
For analytics and statistics, we need to determine the moment when the player clicked on the displayed ad in our application. For three types of advertising - banner, interstitial and rewarded.

We use Unity, AdMob and Google Mobile Ads Unity Plugin v6.1.2.
But the list of available events does not contain what we need - there is no OnClick event.

Tell me, please, how can we track the moment a player clicks on an ad?
Maybe the new version of Google Mobile Ads Unity Plugin v7.0.0 has such an opportunity?

Mobile Ads SDK Forum Advisor

unread,
Mar 28, 2022, 3:50:34 AM3/28/22
to sergei.ti...@gmail.com, google-adm...@googlegroups.com
Hi Sergie,

Thank you for reaching out to us.

With regard to your concern, for banner and interstitial you can use ad events and call this.bannerView.OnAdOpening += this.HandleOnAdOpened; / this.interstitial.OnAdOpening += HandleOnAdOpening; that is being called when ad is shown. Then, for rewarded ads, you can use this.rewardedAd.OnAdOpening += HandleRewardedAdOpening;. Let us know if this is what you're looking for. 

In addition to that, I would suggest using the latest version of the unity plugin to avoid any other implementation error that you might encounter. 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2YrvcW:ref

Sergei

unread,
Mar 28, 2022, 9:38:41 AM3/28/22
to Google Mobile Ads SDK Developers
Hello Pamela!
Thanks for the reply and for the advice to use the latest version of the plugin, we will update it!

But, unfortunately, this is not quite what we need. As you wrote yourself, these events are called when the ad has been shown. And we need the moment not when the ad is shown, but when the player clicked on the shown ad.

However, according to the documentation link you provided, in the description of the signature for the event this.bannerView.OnAdOpening += this.HandleOnAdOpened; there is a very curious comment above it: // Called when an ad is clicked. 
Could you please explain how to understand this contradiction? Is this event still called when the ad was shown (based on the event name and your answer) or is it called when the ad was clicked (as stated in the comment in the documentation)? Those are two different actions.

But such a contradiction exists only for banner advertising. For similar events for interstitial or rewarded advertising, the comment is: // Called when an ad is shownWhich is more like reality based on the name of the event and your answer.

If, nevertheless, events are called when an ad is shown, and not when it is clicked, then, unfortunately, this is not what we need. Is there a way to find out when an ad was clicked, and not when it was shown?

понедельник, 28 марта 2022 г. в 10:50:34 UTC+3, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Mar 29, 2022, 10:07:53 AM3/29/22
to sergei.ti...@gmail.com, google-adm...@googlegroups.com

Hi Sergie,

Thank you for getting back to us.

If you're looking for the actual getting of the click once the player clicks on ads with those ad formats, upon checking in our documentation guide, it is not yet possible. Then, for your question for banner, we will check this with the rest of the team on what is the proper function that events is for. But first, we would like to ask for your business use case, then I will try to make an request about this to the rest of the team if this can be added in the unity implementation.

Sergei

unread,
Mar 29, 2022, 11:41:24 AM3/29/22
to Google Mobile Ads SDK Developers
Thanks for the answer!

It's a pitty it's impossible. I would like to believe that this is not yet possible and this functionality will appear in the future.
If you make a request to your team to add this functionality - we will be very grateful to you!

In our business model, we would like to use this ad click event for analytics and statistics.
We understand that rewarding players for clicking on ads is wrong and we do not plan to do so.
However, since a click on an ad brings in the most revenue, although it depends more on the ad itself, we would still like to understand which target audience is more likely to click on ads.
We need this knowledge to strategically plan the development of our next games - what genre to make games and for what target audience. And also to understand which of the games we have already developed should be advertised to our marketers (in Google Ads), and which ones are better not to spend the limited budget of our small company.

вторник, 29 марта 2022 г. в 17:07:53 UTC+3, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Mar 29, 2022, 9:50:22 PM3/29/22
to sergei.ti...@gmail.com, google-adm...@googlegroups.com

Hello Sergie,

Thank for getting back to us and for sharing your business use case. Allow me to raise this with the team for their review. Please note that there is no guarantee if this request will be reflected; however, you may keep an eye to our documentation and release notes for any updates.

Regards,

Google Logo
Mark Kevin
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2YrvcW:ref

Mobile Ads SDK Forum Advisor

unread,
Mar 30, 2022, 12:39:42 AM3/30/22
to google-adm...@googlegroups.com, sergei.ti...@gmail.com

Hi Sergei,

The requested functionality to listen to click events is currently not available. It is a good request which we plan to work on, however we can not give you an estimate on when we will launch this this new feature.

Let us know if there is anything else we can help you with,

Nick



ref:_00D1U1174p._5004Q2YrvcW:ref

Sergei

unread,
Mar 30, 2022, 3:53:13 AM3/30/22
to Google Mobile Ads SDK Developers
Thank you very much, Mark and Nick!

We understand that you can't guarantee that this functionality will be available and can't give an estimate of when it will be available, but it's great that you're planning to do it.

You answered our question completely, thank you, we have no more questions.
We will keep an eye on your documentation and release notes for new versions of the plugin.
среда, 30 марта 2022 г. в 07:39:42 UTC+3, mobileadssdk:
Reply all
Reply to author
Forward
0 new messages