@bebetter said in How to Manage API Key Usage in Multi-Threaded Tasks with BAS:
Can we return the API key back to the resource after finishing a thread?
You don't need it. Just set the usage count of the resource when you create it.
create random_number: 0-50
if random_number < 10 -> click
@Royal-Russia Note that, he explicitly said that 10 threads click, and 40 don't click.
Therefore, using a random number will not work, because the number of results to be obtained cannot be determined.
@Habibiii Because you didn't explicitly state whether you want the click streams to be fixed or random, there are two ways to handle this.
The click its random, because whats i want its if browser click on ads OR no, so if i have 50 threads i just want only 10 to give on ads,
but threads will be opened and closed, of course, because they will be random visitors to that page, they will navigate to it, then if it is within 10 threads that must be clicked, they will click on those ads, if there are 40, they will continue the procedure and then closes