Skip to content

PPE unclear best practices respecting spending limits #2125

@lisvrijsen

Description

@lisvrijsen

It's not mentioned what the consequences are of not respecting user spending limits, mentioned here:
https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event#respect-user-spending-limits.

Also, the instructions mentioned seem to only apply to the custom named events, and not to the synthetic default dataset item event apify-default-dataset-item, while the synthetic event is now recommended and mentioned under best pratices.

In the examples, you can see the custom event:

const chargeForApiProductDetail = async () => {
const chargeResult = await Actor.charge({ eventName: "product-detail" });

return chargeResult;
};

But how to respect user spending limits if you use the synthetic default dataset item event.

It might also be good to add the need for a check here and here.

Whenever I get a ticket about a dev not having respected the spending limits of the user they are always very surprised and unaware.
See Slack thread where a change to the docs was also suggested, here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions