Mediation on iOS

Starting a New Integration
Sample Vungle integration

Starting a New Mediation Integration on iOS

To enable Ad Network Mediation for iOS complete the following steps.

  1. Import each bundle’s unitypackage for the Ad Networks you want to mediate from here.
  2. Edit your Ad Network credentials in the plist value of every .projmods file in the Assets/Fyber/iOS/mediation folder.
    • Important: Since Fyber Unity Plugin 6.5.0 you can configure each network directly from the Dashboard, providing the credentials and options in the network configuration dialog. By default, a portion of the "plist" section is commented, which means that the content will be ignored. To override the server-side configuration properties, uncomment the section and put your credentials there.

You’ll need to include unique information for the different networks you want to integrate. A full list of our partner bundles and their integration guides are found below:

Rewarded Video Partner Integration Guides
Interstitial Partner Integration Guides

Sample Vungle Integration

  1. Download and import the Vungle mediation package (Fyber_Vungle_XXXX_r1.unitypackage) into your Unity project. image
  2. Edit the Assets/Fyber/iOS/mediation/Vungle.projmods file.
    • In case you are using Dashboard configuration to provide the credentials, keep the content of the "plist" section commented, as demonstrated below. You can also replace the whole section with "plist": []

      {
          "version": "3.2.0-r1",
      "group": "Mediation/Vungle",
      
      ...
      
      "plist": [
          "<plist>
              <key>name</key>
              <string>Vungle</string>
              <key>settings</key>
              <!-- Uncomment this section if you want to override the server-side configuration properties
              <dict>
                  <key>SPVungleAppId</key>
                  <string>YOUR-APPID-HERE</string>
                  <key>SPVungleOrientation</key>
                  <string>all</string>
              </dict>
              -->
          </plist>"]
      }
      
    • If you want to supply the credentials through the local configuration file, uncomment the contents of the "plist" section and put your Vungle App ID in there:

      {
        "version": "3.2.0-r1",
        "group": "Mediation/Vungle",
      
        ...
      
        "plist": [
          "<plist>
              <key>name</key>
              <string>Vungle</string>
              <key>settings</key>
              <dict>
                  <key>SPVungleAppId</key>
                  <string>YOUR-APPID-HERE</string>
                  <key>SPVungleOrientation</key>
                  <string>all</string>
              </dict>
          </plist>"]
      }
      
  3. That’s it! We’ll take care of adding the required frameworks, libraries, compiler and linker flags as well as filling the credentials in the .plist file.