Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Placed Affiliate SDK


The Placed SDK for iOS is designed to help you add Placed location gathering to your app. It exposes simple public API calls that can be used to turn on and off location gathering.

The SDK has been designed for easy setup and integration with both new and existing mobile applications.



The preferred method for installing the Placed SDK in your app is CocoaPods, a dependency manager for Cocoa projects. You can install CocoaPods with the following command:

$ gem install cocoapods

To integrate the Placed SDK into your Xcode project using CocoaPods, specify it in your Podfile:


pod 'Placed', :git => ''

Then, run the following command:

$ pod install


If you are not using CocoaPods, you can integrate Placed.framework manually into your project.

Location Permission

As outlined in Section 5 of the Placed Affiliate Agreement, you must satisfy two requirements prior to registering a user with the Placed SDK:

  1. Gather Express Consent for User Data Collection via Opt-in Dialog
    In addition having a legally compliant privacy policy describing Placed’s collection of location and device information, you must include a discrete opt-in dialog which gathers express consent for data collection. This dialog appears prior to the fine location permission prompt, and includes:

    • The language: “Aggregated device data, including location, is measured for the purposes of market research by Placed, Inc.
    • Links to the Placed Terms of Service and Privacy Policy
    • Buttons to “Accept” or “Cancel”
  2. Prompt for Background Location Permission
    Under the “Required background modes” UIBackgroundModes key in your app’s main plist file, you will need to add:

    App registers for location updates

    In addition, you must provide all of the following location usage descriptions in your app's plist:


    These permissions are very important to the Placed SDK. If your app does not currently use background location permission, please contact a Placed representative.

For an example of the opt-in dialog and location permission prompt, please refer to the sample app. We have also provided a gallery for inspiration on how you can better integrate the opt-in experience into your app.


  1. Add [PlacedAgent createWithAppKey:andDelegate:] call to your AppDelegate. Optionally, you may provide a PlacedAgentDelegate to this method but it is not required.

    #import <Placed/PlacedAgent.h>
    @implementation AppDelegate
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        // Initialize Placed SDK
        [PlacedAgent createWithAppKey:@"<Application Key>" andDelegate:nil]
  2. Once you've gathered express consent to collect user data, call [PlacedAgent registerUser] to register a new user for location collection by the Placed SDK. This method should only be called once in the user's lifecycle. You may find the method [PlacedAgent isUserRegistered] useful for checking if registerUser has already been called.

How to join

Please contact your Placed representative to find out how to register your account. If you do not have a representative yet, please email


For further guidance, please contact