docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ErrorCode

    Error codes that may be returned by the Instant Games API

    Namespace: Meta.InstantGames.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
    Syntax
    public enum ErrorCode

    Fields

    Name Description
    ADS_FREQUENT_LOAD

    Ads are being loaded too frequently.

    ADS_NOT_LOADED

    Attempted to show an ad that has not been loaded successfully.

    ADS_NO_FILL

    We were not able to serve ads to the current user. This can happen if the user has opted out of interest-based ads on their device, or if we do not have ad inventory to show for that user.

    ADS_TOO_MANY_INSTANCES

    There are too many concurrent ad instances. Load and show existing ad instances before creating new ones.

    ANALYTICS_POST_EXCEPTION

    The analytics API experienced a problem while attempting to post an event.

    CLIENT_REQUIRES_UPDATE

    [Deprecated] - The client requires an update to access the feature that returned this result. If this result is returned on web, it means the feature is not supported by the web client yet. Deprecated in favor of CLIENT_UNSUPPORTED_OPERATION in v5.0 and above

    CLIENT_UNSUPPORTED_OPERATION

    The client does not support the current operation. This may be due to lack of support on the client version or platform, or because the operation is not allowed for the game or player.

    DUPLICATE_POST

    DUPLICATE_POST

    GROUP_NOT_LINKED

    GROUP_NOT_LINKED

    INVALID_OPERATION

    The requested operation is invalid for the current game state. This may include requests that violate limitations, such as exceeding storage thresholds, or are not available in a certain state, such as making a context-specific request in a solo context.

    INVALID_PARAM

    The parameter(s) passed to the API are invalid. Could indicate an incorrect type, invalid number of arguments, or a semantic issue (for example, passing an unserializable object to a serializing function).

    LEADERBOARD_NOT_FOUND

    No leaderboard with the requested name was found. Either the leaderboard does not exist yet, or the name did not match any registered leaderboard configuration for the game.

    LEADERBOARD_WRONG_CONTEXT

    Attempted to write to a leaderboard that's associated with a context other than the one the game is currently being played in.

    LIVE_MATCH_NOT_FOUND

    LIVE_MATCH_NOT_FOUND

    NETWORK_FAILURE

    The client experienced an issue with a network request. This is likely due to a transient issue, such as the player's internet connection dropping.

    PAGE_NOT_LINKED

    PAGE_NOT_LINKED

    PAYMENTS_NOT_INITIALIZED

    The client has not completed setting up payments or is not accepting payments API calls.

    PENDING_REQUEST

    Represents a rejection due an existing request that conflicts with this one. For example, we will reject any calls that would surface a Facebook UI when another request that depends on a Facebook UI is pending.

    RATE_LIMITED

    Some APIs or operations are being called too often. This is likely due to the game calling a particular API an excessive amount of times in a very short period. Reducing the rate of requests should cause this error to go away.

    SAME_CONTEXT

    The game attempted to perform a context change into the current context.

    TOURNAMENT_NOT_FOUND

    TOURNAMENT_NOT_FOUND

    UNKNOWN

    An unknown or unspecified issue occurred. This is the default error code returned when the client does not specify a code.

    USER_INPUT

    The user made a choice that resulted in a rejection. For example, if the game calls up the Context Change dialog from FBInstant.Context.ChooseAsync and the player closes it, this error code will be included in the promise rejection.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)