This page provides step-by-step instructions to set up rewarded-video line items on MoPub to be used with the Prebid Mobile SDK.
In the Add a Line Item section:
For each level of pricing granularity required, one line item/creative pairing will need to be set up.
Line items must be set up to target custom keywords that include bid price information. The bid price keywords will contain how much the buyer bid on the impression.
Prebid Mobile, by default, will send the highest bid price to MoPub using the keyword
hb_pb but will also submit the key
hb_pb_BIDDERCODE for each bidder. You can decide to create one set of line items for all bidders or one set of line items for each bidder.
Rewarded video creatives must have a VAST tag with the Format set to Rewarded Video that includes the code below:
<VAST version="2.0"> <Ad id="1"> <Wrapper> <AdSystem>MoPub</AdSystem> <VASTAdTagURI><![CDATA[https://%%KEYWORD:hb_cache_host%%%%KEYWORD:hb_cache_path%%?uuid=%%KEYWORD:hb_uuid%%]]></VASTAdTagURI> </Wrapper> </Ad> </VAST>
hb_uuid variable value is the cache id that will load the ad markup from the bid stored in Prebid Cache. Within each line item, for each ad unit size, there should be one creative with this content.
The XML can be constructed by providing the VAST tag URL as:
Duplicate your line items according to your price granularity setting.