Properly permit target_app_ids to be an array