Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Offerwall

Offerwall Android SDK

Offerwall iOS SDK

Offerwall Unity SDK

Unity Offerwall

Tapjoy Offerwall
​
​
Introduction
  • Quickstart
  • Manual integration
  • Changelog
  • Update guide
  • SDK reference
  • Offerwall migration checklist
Placements
  • Virtual currency
  • SDK
  • Offerwall migration guide
Testing
  • Test devices
  • Examples
Advanced
  • User privacy
  • User properties
Cocos2dx
  • C++ library
  • C++ API reference
  1. Grow your game
  2. Unity Offerwall
  3. iOS SDK

C++ Library

Integrate Tapjoy in Cocos2d-x projects using the iOS C++ Library guide, starting with header inclusion
Read time 1 minute
Last updated a year ago

If you are using Cocos2d-x to write your app in C++, you must first implement all the steps for Tapjoy iOS integration for your Xcode project then use the TapjoyCpp.h header file.
#include "Tapjoy/TapjoyCpp.h" // Tapjoy C++ APIusing namespace tapjoy; Tapjoy::trackEvent("some event");

Privacy

Full details here.

API

TJPrivacyPolicyHandle policyHandle;policyHandle = TJPrivacyPolicy::getPrivacyPolicy();TJPrivacyPolicy::subjectToGDPR(policyHandle,true);TJPrivacyPolicy::setUserConsent(policyHandle, "1″);TJPrivacyPolicy::setUSPrivacy(policyHandle, "1YNY");TJPrivacyPolicy::belowConsentAge(policyHandle, true);

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Privacy

      • API


Report a problem with this page