code: public static boolean getLimitEventAndDataUsage(Context context) {
          SharedPreferences preferences = context.getSharedPreferences(APP_EVENT_PREFERENCES, Context.MODE_PRIVATE);
          return preferences.getBoolean("limitEventUsage", false);
      }
docs: Gets whether data such as that generated through AppEventsLogger and sent to Facebook should be restricted from
  being used for purposes other than analytics and conversions, such as for targeting ads to this user.  Defaults
  to false.  This value is stored on the device and persists across app launches.
  
  @param context   Used to read the value.