myChips SDK
  • Introduction
  • Getting Started
    • Create a Publisher Account
    • Create your App/Site
    • Create an AdUnit
    • Test in Sanbox mode
  • Reward Handling
    • Webhook S2S Postback
    • Validating the Webhook S2S
    • Rejected S2S Webhook Postback
  • Billing
  • Unity
    • Install SDK
    • Reward User
    • FAQ
  • Android
    • Install SDK
    • Reward User
  • React Native
    • Install SDK
    • Reward User
  • RN Expo
    • Install SDK
    • Reward User
  • iOS
    • Install SDK
    • Reward User
  • Flutter
    • Install SDK
    • Reward User
  • iFrame
  • WebView & Direct Link
  • Revenue API
Powered by GitBook
On this page

iFrame

PreviousReward UserNextWebView & Direct Link

Last updated 1 month ago

Steps on how to integrate MyChips with iFrame integration (web integration).

Include the following SDK script and initialize it within your HTML.

<script src="https://v1.mychips.io/SDK/latest/my-chips-sdk.bundle.js"></script>myChipsSDK('init', {userId: '{{user_id}}'})

Add the iFrame code in your HTML.

<iframe id="my-chips-iframe" allow="ch-ua-platform; ch-ua-platform-version" src="https://sdk.mychips.io/content?content_id={adunit_id}&user_id={user_id}&gender={gender}&age={age}"></iframe>

To locate your iFrame code, please click on the Edit button shown in the screen below.

Next, navigate to the Integration section, where you'll find your iFrame code. The code highlighted in the green square is ready to use, and the content_id parameter corresponds to your ad unit ID.

In the list below, you'll find all the available parameters. If you wish to send any of these parameters to us, simply add them to the URL in the iframe code.

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

The list of parameters available:

Parameter

Example

Mandatory

Notes

cid

255448

No

provided by your AM

pid

2544

No

provided by your AM

click_id

6a204bd89f3

No

A unique clickid. Keep the same value at each events

postback_id

12345

No

Unique id that Identify a single postback.

user_id

U9221

No

Unique User Identifier

gender

m

No

To improve eCPC – supports “m”, “f”, “n”

age

45

No

To improve eCPC

aff_sub1, aff_sub2, aff_sub3, aff_sub4, aff_sub5

No

Additional parameters to receive back in the postback

Reward Users

The only reward option available on iFrame is the Webhook S2S Postback. Please check the relevant documentation below.

Webhook S2S Postback