TapjoyOffers is a way to display a multitude of offers to your users. This is an all-in-one solution that provides your users with payment options in addition to offers to complete. I. Displaying offers with our Encrypted Parameters IFrame (Recommended)1) Unzip and upload the Tapjoy PHP Class files onto your server. You will need to modify one of the files and enter details about your application. 2) Edit config.tapjoy.php with
the application ID and application secret key (both can be found in the
Onboarding tool) define( 'APP_ID', '8d14cd6d8a84acd86146dcXXXXXXXXX'
); define( 'APP_SHARED_SECRET', '1908772561XXXXX'
);3) Please review to the sample demo.php file provided in the Tapjoy PHP Class files. Here, you will construct an array object containing the SNUID, along with other optional parameters such as the affiliate ID, currency name (This parameter is also set via our Onboarding Tool, but setting this parameter will override that value set in the Onboarding Tool), and dynamic exchange rate. 3a) Please also set the 'uidSource' value accordingly according to the Social Network:1 = Facebook Third Party ID 2 = Myspace Third Party ID 0 = All Else 4) Once you have set all the data, you can render the iframe code by calling: $tapjoy->renderOffersURL()require_once 'class.tapjoy.php';$tapjoy = new TapJoy();$user_id = ''; // Set SNUID here$request_data = array ( 'snuid' => $user_id, // Required 'affl' => $affl, // Optional 'vcurr' => $currency_name, // Optional 'exchRate' => $exchange_rate, // Optional 'uidSource' => 1, // Enter 1 if the snuid is a Facebook third-Party ID // Enter 2 if the snuid is a MySpace third-Party ID // Otherwise, enter 0 'issue_ts' => time());$tapjoy->renderOffersURL($request_data, 700, 2400);5) Please review demo.php and class.tapjoy.com files for other optional integration points and detailed comments. III. Displaying offers in a Facebook FBML modal- To load the Tajjoy Offers IFrame in a Facebook modal (overlay), please see the sample FBML code below.
III. Displaying offers in an IFrameTo request an offer page in an IFrame, please use the format below: http://pub.myofferpal.com/[APPLICATION_ID]/showoffers.action?snuid=[user id] The parameters for TapjoyOffers are explained in the table below:
Example TapjoyOffers request: http://pub.myofferpal.com/[APPLICATION_ID]/showoffers.action?snuid=[SNUID] |