Placement
« instructions on how to create a placement »
« reorganize information based on setup steps »
- Select the app or Set up the app
- Select Placement Format — placement settings
- Add bidding line items — Set bidding floor price
- Add waterfall line items
Placement Settings include
- Ad Queueing
- floor prices (specific to ad format)
- prioritize bidding (specific to ad format)
- banner refresh rate (specific to ad format)
- rewarded callbacks (specific to rewarded ad format)
Create New Placement 🔗
- Navigate to Mediation > Placements. You will be redirected to the Helium dashboard.
- Select an app on the top right dropdown. Then click New Placement +. If an app is not selected, you will be prompted to import an app.
- Select an Ad Format.
- Select a a pre-defined Ad Placement Name or create your own custom name.
- Custom name has a maximum of 50 characters and only numbers, letters, and hyphens are allowed.
- The Ad Placement Name will be used in the Mediation SDK integration.
- Set the Creative Types setting.
Advanced Settings 🔗
Creative Types 🔗
All creative types are allowed by default. Allowing all creative types will help maximize your earnings. See Ad Formats for more information on creative type to ad type compatilibities.
Ad Queueing 🔗
Ad queueing allows queueing up multiple fullscreen ads to show in succession. This can reduce and potentially eliminate latency for ad experiences that require showing fullscreen ads back to back.
This feature requires Mediation SDK 4.9.0+. Banners and adaptive banners cannot be queued.
The queue size can be set to hold 1-5 ads. This limit can be set at 3 levels on the Mediation dashboard: (1) max queue size, (2) default queue size, and (3) placement queue size.
- Set the Queue Size for the placement. If no queue size is set here, then the Default Queue Size set on the app’s detail page will apply. The Max Queue Size will take precedence if the default queue size is greater than the max queue size.
- On the app’s details page, set the Max Queue Size that applies to all of the app’s placements. This setting defaults to 2. Default queue size will take precedence if it is less than the max queue size.
- On the app’s details page, set the Default Queue Size for any placements that do not have a queue size set. This setting defaults to 2. Max queue size takes precedence if it is less than the default queue size or placement queue size.
For example, if Max Queue Size is set to 4 and Default Queue Size is set to 2, then any placement’s Queue Size will default to 2 if no size is set, or will have a max size of 4 if the size set is greater than 4.
If the settings are set to the following: | Then the placement sizes will be: |
---|---|
|
|
Rewarded Callbacks 🔗
When creating or editing a Rewarded placement, you will see a new toggle for configuring a rewarded callback under Advanced Settings. Click the toggle to enable rewarded callbacks on your placement.
Here you will be able to configure the following options:
Option | Definition |
---|---|
Method | The HTTP method to make the callback request with. Both GET and POST are supported |
Max Retries | The number of times Mediation will retry the callback if your server does not respond with a 200 OK. min=0 , max=10 |
URL | The URL to make the callback request to. Must be <https://> |
Body | Optional field that is only available when the method is POST. Supports the same macros as URL |
Supported Macros 🔗
The following macros can be appended to the URL or the Body when using the POST method.
Macro | Definition | Required? |
---|---|---|
%%TRANSACTION_ID%% |
A unique impression ID associated with the rewarded event | Required |
%%SERVER_TIMESTAMP%% |
A UNIX timestamp set by the Mediation server when the event is processed | Required |
%%USER_ID%% |
A publisher specific user ID associated | Required |
%%VERIFICATION%% |
A SHA256 hash encrypted with your rewarded secret key by the Mediation server | Required |
%%SDK_TIMESTAMP%% |
A UNIX timestamp set by the Mediation SDK when the event is processed | Optional |
%%CPM_PRICE%% |
The CPM price of the ad unit that was served | Optional |
%%AD_REVENUE%% |
The actual ad revenue value from the impression. CPM_PRICE / 1000 |
Optional |
%%CUSTOM_DATA%% |
A key value JSON payload provided via the SDK that contains custom data | Optional |
Make sure all the required macros are present otherwise you will not be able to save the callback.
An example of a URL containing all the required macros:
https://myserver.com/page?id=%%TRANSACTION_ID%%&user=%%USER_ID%%&hash=%%VERIFICATION%%&ts=%%SERVER_TIMESTAMP%%
Creating a Rewarded Secret Key 🔗
To create or obtain your account’s secret key, it is available under Tools → General Settings
Verifying rewarded callbacks on the publisher server 🔗
When a rewarded ad is shown, Mediation will ping your server’s endpoint. An example of a Body containing all the required macros:
{
"tx": "%%TRANSACTION_ID%%",
"usr": "%%USER_ID%%",
"sdk": %%SDK_TIMESTAMP%%,
"svt": %%SERVER_TIMESTAMP%%,
"hash": "%%VERIFICATION%%"
}
When you receive the callback, you can verify that the request is authentic by regenerating the %%VERIFICATION%%
hash with the following method:
message = %%SERVER_TIMESTAMP%% + %%TRANSACTION_ID%% + %%USER_ID%%
SHA256(secret_key, message)
Note that the secret key will be the same value available from Tools in the Dashboard. You will then need to verify that the result of the operation above equals the value of the %%VERIFICATION%%
hash.
Bidding Settings 🔗
Adding Bidding Networks 🔗
Review our Partner Network Details chart for a complete list of available bidding networks and instructions on connecting their network with Chartboost Mediation.
- Make sure the network partner credentials here exactly match the information in your account on each network dashboard.
- Make sure all desired bidding networks are active.
Prioritize Bidding 🔗
Enabling this feature will consider and return the highest bid above the set prioritized bidding CPM price. If no bid above the CPM price is returned, then the CPM of waterfall line items and winning bids will be considered from highest to lowest to return an ad.
Using this feature may not get the best price for every impression since waterfall line items will not be considered unless no bids are available, even if you have a higher rate line item available. Therefore, we recommend utilizing this option if you’re experiencing high latency or you have an extensive waterfall.
eCPM Floor 🔗
- If you are using bidding only in this Mediation placement, you can enable eCPM floor by either setting a global floor or country-specific floors.
- Country level eCPM floor takes precedence over the global eCPM floor. For any countries that don’t have country level eCPM floor, the Mediation will use the global eCPM floor.
- If you are using both bidding and waterfall in this Mediation placement, you should not enable eCPM floor, since you would want bidding partners to compete in all ad requests with non-bidding networks/line items.
Waterfall Settings 🔗
Each waterfall can contain a set of ad groups specific to an ad format type. Each ad group will contain a set of line items which is a specific partner network ad placement.
A single app can have multiple waterfalls for different use case needs.
To get started, click on + Add under Ad Groups and select + Create a new Ad Group. Existing ad groups can also be linked to this placement.
Line Items 🔗
Line Items are specific to a partner network. Review our Partner Network Details chart for a complete list of available waterfall networks and instructions on connecting their network and partner placement with Chartboost Mediation.
Make sure your line items are added to the group.
- Click + Add a line item to bring up existing line items.
- Check the Add to Ad Group box in the network partner placements row.
- Click + Add Selected Items button on the bottom right corner