Install SDK

1. Introduction

This guide provides a comprehensive walkthrough for integrating the MyChips SDK into your iOS application, enabling the display of an engaging offerwall.

Once installed, you can choose between two integration options:

Both options use the same SDK. Install it once, then pick the integration that fits your app.

2. Prerequisites

  • Xcode 16 or later

  • Minimum deployment target iOS 14.

3. SDK Integration

In your project in Xcode go to File -> Add Package Dependencies... and then add the dependency using the following repo: https://github.com/myappfree/mychips-ios-sdkarrow-up-right

Now in your project you can import the SDK:

import MyChipsSdk

4. Initializating the SDK

Before using the sdk or showing the offerwall you must initialize it:

Obtain your API key from Universal Developer Portalarrow-up-right

4.1 (Mandatory) Set Identifier for Advertisers

Improve reward tracking and eCPM performance by passing the IDFA.

4.2 (Optional) Set userId if you have your own unique id

Replace "YOUR_USER_ID" with your actual user ID variable or value.

If you do not provide a specific user ID, one will be automatically generated.

4.3 (Optional) Set User Age

You can set the user’s age to help improve ad targeting and analytics.

Replace 30 with your actual user age variable or value (integer).

💡 Note:

  • The value should be an integer (e.g., 18, 25, 30).

  • Expected range is 0–100 (inclusive).

4.4 (Optional) Set User Gender

You can set the user’s gender to help improve ad targeting and analytics.

Available enum values:

4.5 (Optional) Set custom parameters (aff_sub1aff_sub5 )

We provide 5 aff_sub parameters (aff_sub1, aff_sub2, aff_sub3, aff_sub4, aff_sub5), which you can use to pass custom values.

Replace "YOUR_CUSTOM_VALUE" with your actual custom value.

5. Next Steps

Choose your integration:

Integration
Description
Guide

Offerwall

Full-screen WebView experience

Native Campaigns

Customizable campaign list in your UI

Last updated