@Ella I had created apify actor and in
# 💻creators-and-apify
b
@Ella 🍙 I had created apify actor and in Monitization page if i set PPE pay per event or PPR pay per result will i have to write pricing logic in actor code or not ?
e
You need to define events in your code: https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event With the events you define in your code, when you set up your pricing in Apify Console you will identify the events and tell Apify how much you want to charge your user for each event. You don't need to write the pricing logic, just define the events. Apify will handle the pricing from there.
b
This is for PPE, if I set pay per result, do I need to define events in code.
a
@bakkesh ks just advanced to level 4! Thanks for your contributions! 🎉
l
No for PPR, you do not have to define events in your code, but you must check if the user can still be charged. Although it is recommended to publish PPE actors.