what is the limit of number of users for removing users from custom audience graph api. Currently I am getting only 1800 users per request for remove_users instead of 10000
1

I am using below code snippet to remove users from custom audience. My problem is currently I am getting limit of 1800 users per request for remove_users. If I am using more users per request then I am getting response status code of 400. As per documentation it should be 10000 users per request right so why I am getting this error upon crossing 1800?

api = FacebookAdsApi.init(my_app_id, my_app_secret, my_access_token) audience = CustomAudience(user_list_id, api=api).api_get(CUSTOM_AUDIENCE_FIELDS)

def generate_user_data(): extern_id = generate_random_extern_id() return { 'extern_id': extern_id
}

users_per_call = 1800 users = [generate_user_data() for _ in range(users_per_call)] response = audience.remove_users( schema=[ 'extern_id' # Adding extern_id to the schema ], users=[user for user in users], pre_hashed=True, is_raw=True )

Anudeep
Asked about 2 months ago