iFrame
Steps on how to integrate MyChips with iFrame integration (web integration).
1. 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}}'})2. Add the iFrame code in your HTML.
Example iFrame code for iOS users:
<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}&idfa={idfa}&gender={gender}&age={age}"></iframe>Example iFrame code for ANDROID users:
<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}&gaid={gaid}&gender={gender}&age={age}"></iframe>Note: Replace all macro placeholders (e.g., {user_id}, {adunit_id}) in the iFrame code with your actual values.
Also, make sure that any parameters you add to the URL from the parameters list below are updated with real data.
Example iFrame code with values replaced for iOS users:
<iframe id="my-chips-iframe" allow="ch-ua-platform; ch-ua-platform-version" src="https://sdk.mychips.io/content?content_id=28617c7e-0178-4b89-b258-74bcf171e&user_id=5d41402abc4b2a76b9719d911017c592&idfa=6D92078A-8246-4BA4-AE5B-76104861E7DC&gender=m&age=30"></iframe>Example iFrame code with values replaced for ANDROID users:
<iframe id="my-chips-iframe" allow="ch-ua-platform; ch-ua-platform-version" src="https://sdk.mychips.io/content?content_id=28617c7e-0178-4b89-b258-74bcf171e&user_id=5d41402abc4b2a76b9719d911017c592&gaid=38400000-8cf0-11bd-b23e-10b96e40000d&gender=m&age=30"></iframe>3. Locating Your iFrame Code
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.
The list of parameters available:
Parameter
Example
Mandatory
Notes
user_id
U9221
Yes
The User ID is a unique identifier assigned to an individual user. If no specific User ID is provided, the system will automatically generate one to ensure proper user identification and tracking.
gaid
38400000-8cf0-11bd-b23e-10b96e40000d
No
The Google Advertising ID (GAID) is a unique, randomly generated identifier assigned by Google to Android devices, which enables advertisers to track and measure users’ advertising interactions across apps and services. We highly recommend including the GAID parameter, as it helps improve eCPM performance.
idfa
6D92078A-8246-4BA4-AE5B-76104861E7DC
No
The Identifier for Advertisers (IDFA) is a unique, randomly generated code that Apple assigns to each user’s device, allowing advertisers to monitor and analyze advertising-related activity. We highly recommend including the IDFA parameter, as it helps improve eCPM performance.
click_id
6a204bd89f3
No
A unique clickid. Keep the same value at each events
gender
m
No
Supported values: “m” (male), “f” (female), “n” (not specified).
age
45
No
user age (numeric 0-100)
aff_sub1, aff_sub2, aff_sub3, aff_sub4, aff_sub5
No
Custom parameters that can be passed and returned 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 PostbackLast updated