Skip to main content
Question

FacebookAdvertiserIDCollectionEnabled is currently set to FALSE

  • 6 November 2021
  • 5 replies
  • 3987 views

Forum|alt.badge.img+3
  • Dedicated Member
  • 22 replies

I get this warning in the console: “The value for FacebookAdvertiserIDCollectionEnabled is currently set to FALSE so you're sending app events without collecting Advertiser ID. This can affect the quality of your advertising and analytics results.”

 

I believe I’m following the instructions for setting this stuff. On app load:
 

  await Purchases.setDebugLogsEnabled(true);
  await Purchases.setup(JumpspeakConfig.revenueCatApiKey);
  await Purchases.collectDeviceIdentifiers();

  final facebookAppEvents = FacebookAppEvents();
  await facebookAppEvents.setAutoLogAppEventsEnabled(false);
  final facebookAnonymousId = await facebookAppEvents.getAnonymousId();
  if (facebookAnonymousId == null) {
    logError('Could not get anonymous Facebook ID');
  } else {
    await Purchases.setFBAnonymousID(facebookAnonymousId);
  }

FacebookAppEvents is a 3rd party library but I confirmed it gives me an anonymous ID (that error log does not get reached)

 

I also confirmed the values we should see for the customer if this is done right:
https://docs.revenuecat.com/docs/facebook-ads#check-that-the-required-device-data-is-collected
are not registered.

 

I’m pretty sure I’m following the docs here pretty exact:
https://docs.revenuecat.com/docs/facebook-ads
 

Does `collectDeviceIdentifiers` register this info?

5 replies

Forum|alt.badge.img+3
  • Author
  • Dedicated Member
  • 22 replies
  • November 8, 2021

Hmm well they started showing up but the idfa is 00000000-0000-0000-0000-000000000000 ….maybe a Sandbox thing? But I’m not on a simulator, I’m on a real device. Seems weird


tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • November 9, 2021

Hey @Tony 

It seems like FacebookAdvertiserIDCollectionEnabled is set to false. Here’s Facebook documentation for reference: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-advertiser-id

On your device do you have Settings > Privacy > Tracking enabled?

[Edit: Clearing up references]


Forum|alt.badge.img+3
  • Author
  • Dedicated Member
  • 22 replies
  • November 10, 2021

@tina  Doesn’t your documentation say to do the exact opposite? https://docs.revenuecat.com/docs/facebook-ads#track-install-and-usage-events


tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • November 10, 2021

@Tony 

Apologies, was looking at the wrong FB setting. The FacebookAdvertiserIDCollectionEnabled is coming from this documentation: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-advertiser-id Do you have this flag in your app’s .plist settings?


Forum|alt.badge.img+3
  • Author
  • Dedicated Member
  • 22 replies
  • November 10, 2021

@tina I do have this in the plist. Should it be true? It is currently false. Might be good to toss this in your docs - https://docs.revenuecat.com/docs/facebook-ads#track-install-and-usage-events


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings