AppLovin / AppLovin-MAX-Unity-Plugin

110 stars 31 forks source link

Meta: Is it still required to call setAdvertiserTrackingEnabled manually? #348

Open AntonPetrov83 opened 1 month ago

AntonPetrov83 commented 1 month ago

The problem is AudienceNetwork Unity SDK stopped at 6.4.0 and it is not compatible with the underlying iOS SDK 6.15.0. The error is:

ld: Undefined symbols:
  _FBRewardedVideoAdBridgeOnServerRewardFailure, referenced from:
      _RewardedVideoAdBridgeIOS_FBRewardedVideoAdBridgeOnServerRewardFailure_m96A1CD0914AFACD7F3BBC0C23A260B82ECA99F1B in AudienceNetwork.o
      _RewardedVideoAdBridgeIOS_Create_m35EC86CAF2DDCD94E6FD332D5509334DBAB7DD96 in AudienceNetwork.o
  _FBRewardedVideoAdBridgeOnServerRewardSuccess, referenced from:
      _RewardedVideoAdBridgeIOS_FBRewardedVideoAdBridgeOnServerRewardSuccess_m089EC73DDC3879E44E26F40EE45D919E9A00D25D in AudienceNetwork.o
      _RewardedVideoAdBridgeIOS_Create_m35EC86CAF2DDCD94E6FD332D5509334DBAB7DD96 in AudienceNetwork.o

this lines of RewardedVideoAd.cs are not relevant any more.

        [DllImport("__Internal")]
        private static extern void FBRewardedVideoAdBridgeOnServerRewardSuccess(int uniqueId,
                FBRewardedVideoAdBridgeExternalCallback callback);

        [DllImport("__Internal")]
        private static extern void FBRewardedVideoAdBridgeOnServerRewardFailure(int uniqueId,
                FBRewardedVideoAdBridgeExternalCallback callback);

I used AudienceNetwork Unity SDK to call AudienceNetwork.AdSettings.SetAdvertiserTrackingEnabled(trackingEnabled); method but is it still required? Maybe AppLovin calls this automatically?

It is not clear from AppLovin documentation.

thomasmso commented 1 month ago

@AntonPetrov83 - it is still a requirement by Meta. According to their docs, in the Unity section, they advise on how you can proceed without their plugin.

thomasmso commented 1 month ago

(we'll also consider updating our documentation to reflect that)

umair-is commented 1 month ago

@AntonPetrov83 @thomasmso I am getting the same error mentioned by @AntonPetrov83 while building my xcode project with updated sdks. is there any fix for it?

AntonPetrov83 commented 1 month ago

@umair-is I have commented out mentioned methods and usages in RewardedVideoAd.cs

umair-is commented 1 month ago

Thanks @AntonPetrov83 building fine now