Android Retargeting

Note: For advertisers targeting users with Android app retargeting campaigns, a scheme must be registered in the app so that an advertising campaign can launch the app. To learn more about custom URL schemes in Android on developer.android.com, see Sending the User to Another App (external link).

Step 1. Open the AndroidManifest.xml file in XML format.

Note: You can do this by opening AndroidManifest.xml in a text editor or in Eclipse by revealing the raw XML source.

Step 2. Copy and paste the following intent filter inside an activity for your app, and replace “yourscheme” with what you have named your URL scheme.
...
<intent-filter> 
	<action android:name="android.intent.action.VIEW" /> 
	<category android:name="android.intent.category.DEFAULT" /> 
	<category android:name="android.intent.category.BROWSABLE" /> 
	<data android:scheme="yourscheme" /> 
</intent-filter>
...

Note: You must replace “yourscheme” with the name of the scheme you have created. A good URL scheme would be the name of your app with no special characters or spaces.

Testing

Congratulations! You’ve now set up your app with a scheme. To test, complete the following steps:

Step 1. Compile.

Compile and run on your device.

Step 2. Enter your URL scheme.

Open a web browser and enter your URL scheme followed by “://”, (ex. sampleapp:// ) into the address field.

Step 3. Check to see if the URL scheme is set up correctly.

If everything is setup correctly, your application should open.

Note: Once you have set up you app and tested successfully, please distribute the URL scheme to your Millennial Media sales representative.

For More Information