Audiofy SDK - AppLovin AdOps

Create Custom Network

To incorporate the Audiofy SDK into your AppLovin monetization setup, enable the Audiofy SDK ad network and add it to the appropriate ad units.

Open AppLovin MAX Networks page.

Scroll down and click "Click here to add a Custom Network".

Set fields:

  • Custom Network Name - Audiofy Custom Network.
  • iOS Adapter Class Name - MediafyAppLovinAdapter.
  • Android / Fire OS Adapter Class Name - com.mediafy.sdk.applovin.MediafyAppLovinMediationAdapter.

Add Placements to Ad units

Go to "Ad Units".

Find the ad unit you want to apply the Audiofy adapter to.

Activate Custom Network Audiofy Custom Network. Fill custom event fields for the current ad format (look at the following section, "Custom event fields," for the details).

Save ad unit. Changes will be applied in an hour.

Configure Audiofy Placements

The Placement requires three parameters parameters:

  • Placement ID - the name of the placement.
  • CPM Price - price for this custom network.
  • Custom parameter - custom JSON parameter with configuration. It differs for different ad formats (banner, interstitial, native).

Custom Parameters

Attribute Type Description Example
ad_formats Array of strings Ad formats for ad unit. You can pass only banner and video ad formats. Other values will be ignored. Note that multiformat request is supported only for interstitial ads. ["banner", "video"]
ad_unit_id String Ad unit ID. The value will be passed in imp[].ext.mediafy.adunitid field in the ad request (the ad_unit_id that was provided by the Audiofy.ai Account Manager). "56maxa"
sizes Array of objects Ad sizes for ad unit. You can specify width in w field and height in h field. Make sure you've provided both width and height values. [{ "w": 320,"h": 480},{"w": 1024,"h": 768}]

Examples:

Banner

Custom placement parameter for banner:

{
  "ad_formats": [
    "banner"
  ],
  "sizes": [
    {
      "w": 320,
      "h": 50
    }
  ],
  "ad_unit_id": "56maxa"
}

Example: Custom placement parameter for video:

{
  "ad_formats": [
    "video"
  ],
  "sizes": [
    {
      "w": 300,
      "h": 250
    }
  ],
  "ad_unit_id": "56maxa"
}
Interstitial

Ensure you provide sizes for your ad unit in code or via settings on the publisher's UI. It's a critical property.

Example: Custom placement parameter for banner:

{
  "ad_formats": [
    "banner"
  ],
  "sizes": [
    {
      "w": 320,
      "h": 480
    }
  ],
  "ad_unit_id": "56maxa"
}

Example: Custom placement parameter for video:

{
  "ad_formats": [
    "video"
  ],
  "sizes": [
    {
      "w": 1024,
      "h": 768
    }
  ],
  "ad_unit_id": "56maxa"
}

Example: Custom placement parameter for multiformat interstitial - banner and video: It will request the ad with display or video response with sizes 1024x768 and 320x480.

{
  "ad_formats": [
    "banner",
    "video"
  ],
  "sizes": [
    {
      "w": 1024,
      "h": 768
    },
    {
      "w": 320,
      "h": 480
    }
  ],
  "ad_unit_id": "56maxa"
}
Native

Important: AppLovin Ad Unit must be "Manual" type. Or native ad will not be rendered correctly.

JSON parameter for the native adapter should contain the following fields:

  • ad_unit_id - Audiofy ad unit id.

Example: Custom placement parameter for native:

{
  "ad_unit_id": "56maxa"
}
+

Contact Us