> For the complete documentation index, see [llms.txt](https://docs.namiml.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.namiml.com/sdk-reference/namicampaignmanager/launchcampaignerror.md).

# LaunchCampaignError

If a campaign launch fails to raise a paywall, these are potential error types which are returned via an optional callback provided by [`NamiCampaignManager.launch`.](/sdk-reference/namicampaignmanager/launch.md)

{% tabs %}
{% tab title="Swift" %}

```swift
@objc enum LaunchCampaignError : Int {
    case DEFAULT_CAMPAIGN_NOT_FOUND = 0
    case LABELED_CAMPAIGN_NOT_FOUND = 1
    case CAMPAIGN_DATA_NOT_FOUND = 2
    case PAYWALL_ALREADY_DISPLAYED = 3
    case SDK_NOT_INITIALIZED = 4
    case PAYWALL_COULD_NOT_DISPLAY = 5
    case URL_CAMPAIGN_NOT_FOUND = 6
    case PRODUCT_DATA_NOT_FOUND = 7
    case PRODUCT_GROUPS_NOT_FOUND = 8
}
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
enum class LaunchCampaignError : NamiError {
    SDK_NOT_INITIALIZED,
    DEFAULT_CAMPAIGN_NOT_FOUND,
    LABELED_CAMPAIGN_NOT_FOUND,
    PAYWALL_ALREADY_DISPLAYED,
    CAMPAIGN_DATA_NOT_FOUND
 }
```

{% endtab %}

{% tab title="Flutter" %}

```dart
enum LaunchCampaignError {
  SDK_NOT_INITIALIZED,
  DEFAULT_CAMPAIGN_NOT_FOUND,
  LABELED_CAMPAIGN_NOT_FOUND,
  PAYWALL_ALREADY_DISPLAYED,
  CAMPAIGN_DATA_NOT_FOUND
}
```

{% endtab %}

{% tab title="React Native" %}

```jsx
export enum LaunchCampaignError {
  DEFAULT_CAMPAIGN_NOT_FOUND = 0,
  LABELED_CAMPAIGN_NOT_FOUND = 1,
  CAMPAIGN_DATA_NOT_FOUND = 2,
  PAYWALL_ALREADY_DISPLAYED = 3,
  SDK_NOT_INITIALIZED = 4,
}
```

{% endtab %}

{% tab title="Unity" %}

```c
public enum LaunchCampaignError
{
    DefaultCampaignNotFound,
    LabeledCampaignNotFound,
    CampaignDataNotFound,
    PaywallAlreadyDisplayed,
    SDKNotInitialized
}
```

{% endtab %}
{% endtabs %}

* `SDK_NOT_INITIALIZED` - SDK must be initialized via \[Nami.configure] before launching a campaign
* `DEFAULT_CAMPAIGN_NOT_FOUND` - No live default campaign could be launched.
* `LABELED_CAMPAIGN_NOT_FOUND` - No live campaign could be launched for the requested label.
* `PAYWALL_ALREADY_DISPLAYED` - Cannot launch a campaign, because a paywall is currently on screen
* `CAMPAIGN_DATA_NOT_FOUND` - No campaign found
* `PAYWALL_COULD_NOT_DISPLAY` - Could not display the paywall
* `URL_CAMPAIGN_NOT_FOUND` - No live campaign for this deeplink URL was found
* `PRODUCT_DATA_NOT_FOUND`- No product data could be loaded from the app store
* `PRODUCT_GROUPS_NOT_FOUND` - Product groups passed into launch don't match what paywall expects


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.namiml.com/sdk-reference/namicampaignmanager/launchcampaignerror.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
