Self Testing with MoPub SDK What: SimpleAds Demo is an iphone and Android application that displays the three basic type of ads offered through MoPub Banner (320x50), MRect (300x200), and Interstitial (320x480). Why: Being able to properly use the SimpleAds Demo gives you an easy method to test creatives, ad units live on a device and end to end testing through the MoPub Marketplace. (It does not help test the settings in their application/sdk. If you are able to render the ad successfully in the SimpleAdsDemo but not in a live environment of the same SDK version, it is likely due to improper integration on the publisher s side.) Top level steps: 1. Create a MoPub publisher account, app and ad unit placement 2. Set up a line item to target your new ad unit 3. Import and configure test tag for direct serve 4. Load SimpleAdsDemo app 5. Test tag rendering and functionality 6. End to end testing via Marketplace and test app 1. Create a MoPub publisher account 1. Create an account at: https://app.mopub.com/account/register/ 2. Create a new app and ad unit (placement) to self serve/test your tag a. Navigate to the Inventory tab and click Add a New App 3. Select the platform you are testing on and add an arbitrary app name a. (ie: DSP_RMCertification_TestApp) b. Note: Because this app is created exclusively for testing purposes: i. itunes URL (ios), Package name (Android), are not required ii. Primary and secondary categories can be set to any value
4. Select the device format and ad format you wish to test, and add a descriptive name a. Notes: i. When creating a new app, a single ad unit associated with this app will be created as well for you under the selected device and ad format ii. Multiple ad formats can be added to a single app iii. The refresh interval field defines the time period in which an ad unit will self refresh, make a request to the MoPub ad server and display another ad 5. i. Click Save and View Code Integration ii. Note the provided ad unit ID. You will need this later.
2) Set up a line item to target your new ad unit 1. Add a new order i. Navigate to the Orders tab and click Add a New Order 2. Create an order and line item with the following settings: a. Order name Arbitrary name b. Advertiser None c. Type & Priority Guaranteed, 6 d. Line Item name Arbitrary name 3. Target this line item to the previously created ad unit, and click Save and View a. All Geo, Connectivity, Device, Advanced Targeting settings can be left unmodified. b. Click Run to enable this newly created line item
3) Import and configure test tag for direct serve 1. Click Add a New Creative to start importing your tags to test
2. Configure your creative: a. Select the dimensions of the ad unit you intend to target with your tag b. Select HTML as creative type c. Name your creative d. Paste in tag/ad markup you intend to serve to the ad unit i. NOTE: Dimension attributes of the tag/ad markup must match dimensions of the ad unit you are serving to e. If applicable, click MRAID Ad f. Click Save You are now ready to traffic your tag through the Simple Ads Demo!
4. Load SimpleAdsDemo app 1. Retrieve the ad unit ID. 2. Another way of retrieving is to copy it in from your ad unit ID s URL in the front end. ios - Xcode: 1. Download the latest MoPub SimpleAdsDemo and SDK for ios 2. Open MoPubSampleApp.xcodeproj in Xcode 3. Navigate to the following path: a../mopubsampleapp/domain/mpadinfo.m b. Replace the ad unit ID with your own i. NOTE: There are no differences with trafficking your ad unit ID under HTML or MRAID Banner Ad. Android Eclipse: 1. Download the latest MoPub SimpleAdsDemo and SDK for Android 2. Open the MoPub Simple Ads Demo in Eclipse 3. Navigate to the following path: a../mopub-sample/src/main/java/com.mopub.com/simpleadsdemo/simpleadsdemoconstants.jav a
b. Replace the ad unit ID with your own i. NOTE: There are no differences with trafficking your ad unit ID under HTML or MRAID Banner Ad.
5) Test tag rendering and functionality 1. Ensure the tag renders correctly a. Test with a tag that fills 100% of the time b. Ad must display and click through properly 2. Set up backfill campaign with house ad that serves 100% of the time 3. JS Ad Network Only: Setup failover JS call for when there is no ad a. Traffic this failover tag as a backfill campaign for your ad tag: i. <script type="text/javascript" charset="utf-8"> loaded=true; window.location="mopub://failload"; </script> b. Test with tag that fills 50% of the time and make sure that the other 50% of the time it fails over properly to the next ad network 6) End to end testing via Marketplace and test app If you would like to set up end to end testing so that your bidder is targeting your test app exclusively, please follow the following steps. 1. Complete all above steps 2. Contact your Account Manager or DSPsupport@mopub.com with the following information: a. MoPub account email b. App name and specific ad unit for which you intend on bidding on c. Actual bid response your bidder would send in response to this ad unit/placement