Welcome to the guide for the BidMachine Tapjoy Adapter, designed to help you seamlessly integrate Tapjoy into your BidMachine integration. This comprehensive guide will provide step-by-step instructions, configuration details, and additional information to ensure a smooth setup and implementation process.
Prerequisites
Before proceeding with the integration process, please ensure that you have completed the following prerequisites:
- Have a valid BidMachine account.
- Obtain your Tapjoy account credentials (App ID, Placement ID, etc.).
- Ensure you have the latest version of BidMachine SDK integrated into your project.
Installation
To install the BidMachine Tapjoy Adapter, follow these steps:
- Open your project in Xcode or your preferred IDE.
- Navigate to your project’s
Podfile
. - Add the following line to your
Podfile
:
pod 'BidMachineTapjoyAdapter'
- Save the
Podfile
and run the commandpod install
in your terminal or command prompt. - Wait for the installation process to complete.
- You are now ready to proceed with the configuration process.
Configuration
Follow these instructions to configure the BidMachine Tapjoy Adapter:
- Open your project in Xcode or your preferred IDE.
- Locate the
BidMachineTapjoyAdapterConfiguration.plist
file within your project. - Open the file and enter your Tapjoy account credentials:
<key>placementID</key>
<string>YOUR_PLACEMENT_ID</string>
<key>tjAppID</key>
<string>YOUR_APP_ID</string>
<key>tjSDKKey</key>
<string>YOUR_SDK_KEY</string>
- Save the configuration file.
- Proceed to the usage section to learn how to implement Tapjoy with BidMachine.
Usage
To use Tapjoy with BidMachine, follow these steps:
- Import the required classes in the appropriate files:
import BidMachine
import BidMachineTapjoyAdapter
- Initialize the adapter:
BidMachine.shared.registerAdapter(BidMachineTapjoyAdapter())
- Create a placement instance:
let placement = BDMTapjoyRewardedAdPlacement(appId: "YOUR_APP_ID",
placementId: "YOUR_PLACEMENT_ID")
- Load and show the placement:
placement.load { (loadedPlacement, error) in
if let placement = loadedPlacement {
placement.present(from: viewController)
}
}
Troubleshooting
If you encounter any issues during the integration or configuration process, refer to the following troubleshooting tips:
- Double-check your Tapjoy account credentials and ensure they are correctly entered in the configuration file.
- Ensure that you have the latest version of BidMachine SDK integrated into your project.
- Verify that the BidMachine Tapjoy Adapter is added to your project’s dependencies.
- If the issue persists, consult the official documentation or reach out to the support team for further assistance.
Congratulations! You have successfully integrated Tapjoy within your BidMachine integration. By following the provided steps, you can now serve Tapjoy ads and enhance your app monetization strategy.