My actor is Generating negative revenue
Hello, I have an actor that is generating negative revenue
and I would like to know which runs are causing that and fix it. However the analytics tool that Apfiy provide is really limited
what are my options?
13 Replies
@fierDeToiMonGrand just advanced to level 2! Thanks for your contributions! 🎉
Hi, is it a PPE or PPR actor?
PPR
Okay, are you respecting the process.env.ACTOR_MAX_PAID_DATASET_ITEMS variable in your actor?
Yeep
Ok, how much in % negative? Are you using apify proxies in your actor?
Close to 50%
And yes I am using proxies but like, it depends on the user right
Which type of proxy they use
Can I enforce a type of proxy to use?
yeah, or instead of user option you can do it internally as user are concered for result and dont care however you get
yes
interesting, do i do it in the actor.json?
In the input schema json, you can set your proxy default and in the actor, you can validate it to check if the proxy selected is the allowed proxy. In case it's not than you can abort the actor. But if too many users start the actor with a different proxy than the default set, than you may incur some cost/loss. In that case PPE would be a better fit. You will need to experiment on it.
Or the other way would be to remove the proxy selection option from the input schema json and use your own proxy in the backend, if needed.
@gtry just advanced to level 8! Thanks for your contributions! 🎉
I see! Thanks for the tips, Ill experiment and see what's work the best!