@adcp/client API Reference - v4.19.0
    Preparing search index...

    Interface TaskErrorDetail

    Standard error structure for task-specific errors and warnings

    interface TaskErrorDetail {
        code: string;
        message: string;
        field?: string;
        suggestion?: string;
        retry_after?: number;
        details?: {};
        recovery?: "transient" | "correctable" | "terminal";
    }
    Index

    Properties

    code: string

    Error code for programmatic handling. Standard codes are defined in error-code.json and enable autonomous agent recovery. Sellers MAY use codes not in the standard vocabulary for platform-specific errors; agents MUST handle unknown codes gracefully by falling back to the recovery classification.

    message: string

    Human-readable error message

    field?: string

    Field path associated with the error (e.g., 'packages[0].targeting')

    suggestion?: string

    Suggested fix for the error

    retry_after?: number

    Seconds to wait before retrying the operation. Sellers MUST return values between 1 and 3600. Clients MUST clamp values outside this range.

    details?: {}

    Additional task-specific error details

    recovery?: "transient" | "correctable" | "terminal"

    Agent recovery classification. transient: retry after delay (rate limit, service unavailable, timeout). correctable: fix the request and resend (invalid field, budget too low, creative rejected). terminal: requires human action (account suspended, payment required, account not found).