My actor is Generating negative revenue
# apify-platform
m
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?
a
@mo0n7 just advanced to level 2! Thanks for your contributions! 🎉
a
message has been deleted
g
Hi, is it a PPE or PPR actor?
m
PPR
g
Okay, are you respecting the process.env.ACTOR_MAX_PAID_DATASET_ITEMS variable in your actor?
m
Yeep
g
Ok, how much in % negative? Are you using apify proxies in your actor?
m
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?
t
yeah, or instead of user option you can do it internally as user are concered for result and dont care however you get
g
yes
m
interesting, do i do it in the actor.json?
g
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.
a
@gtry just advanced to level 8! Thanks for your contributions! 🎉
m
I see! Thanks for the tips, Ill experiment and see what's work the best!
2 Views