@ellativity 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 ?
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.
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.