appmetrica / appmetrica-unity-plugin

AppMetrica Plugin for Unity
https://appmetrica.io
MIT License
1 stars 0 forks source link

How to turn off Auto Collected Ad Revenue event from ironSource? #6

Closed lan-indiez closed 3 months ago

lan-indiez commented 3 months ago

We're receiving 2 duplicate Ad Revenue event because of Auto Collected option is enabled, how can I turn it off? 2024/05/22 18:10:53.570 18427 18671 Info AppMetrica [com.***] : [131e8ebd-xxxx-xxxx-xxxx-xxxxxxxx93b6] AdRevenue Received: AdRevenue{adRevenue=0.0000429999, currency='USD', adType=OTHER, adNetwork='facebook', adUnitId='<null>', adUnitName='<null>', adPlacementId='<null>', adPlacementName='DefaultBanner', precision='CPM', payload=null, autoCollected=true} 2024/05/22 18:10:53.607 18427 18671 Info AppMetrica [com.***] : [131e8ebd-xxxx-xxxx-xxxx-xxxxxxxx93b6] AdRevenue Received: AdRevenue{adRevenue=0.000042999900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, currency='USD', adType=BANNER, adNetwork='facebook', adUnitId='<null>', adUnitName='Bidding', adPlacementId='<null>', adPlacementName='banner', precision='<null>', payload={"ad_format":"banner","session_id":"1716376240381"}, autoCollected=false}

NesterovichAlexey commented 3 months ago

Hi! Do you see duplicate only in logs or also in web interface? Auto-collection can be turned off by adding to launcherTemplate.gradle:

configurations.configureEach {
    exclude group: 'io.appmetrica.analytics', module: 'analytics-ad-revenue'
}
lan-indiez commented 3 months ago

Hi! Do you see duplicate only in logs or also in web interface? Auto-collection can be turned off by adding to launcherTemplate.gradle:

configurations.configureEach {
    exclude group: 'io.appmetrica.analytics', module: 'analytics-ad-revenue'
}

Hi @NesterovichAlexey I see duplicate in both side logs and web interface.

Let me try your suggestion

lan-indiez commented 3 months ago

Hi! Do you see duplicate only in logs or also in web interface? Auto-collection can be turned off by adding to launcherTemplate.gradle:

configurations.configureEach {
    exclude group: 'io.appmetrica.analytics', module: 'analytics-ad-revenue'
}

It worked, thank you so much :)

lan-indiez commented 12 hours ago

Hi @NesterovichAlexey ,

I missed this option for iOS, can you give me the same solution for iOS apps?

NesterovichAlexey commented 10 hours ago

Hi @NesterovichAlexey ,

I missed this option for iOS, can you give me the same solution for iOS apps?

Hi @lan-indiez!

There is no automatic AdRevenue collection in iOS and you don’t need to turn anything off.