Skip to main content

EUID Mobile Integration Overview for Android and iOS

This guide is an overview of integration options for mobile app publishers who want to integrate with EUID using the SDK for Android or the SDK for iOS.

note

This guide uses the group term EUID mobile SDKs to include both the SDK for Android and the SDK for iOS.

Introduction

EUID provides SDKs for Android/iOS that support the following:

  • Generating the EUID token
  • Refreshing the EUID token
  • Storing the EUID token

For additional flexibility, EUID also provides alternative methods for some of the features and complementary products, such as EUID Google GMA/IMA Plugins. Available options are described in the individual guides: see Integration Overview: High-Level Steps.

Client-Side or Client-Server Integration

The options for integrating with EUID using the EUID mobile SDKs are summarized in the following table. Choose the option that's best for you.

ScenarioOptionIntegration Guide
You have access to personal data (email address) on the client side/within the mobile app, and want to keep changes within your app only.Client-side integrationEUID Client-Side Integration Guide for Mobile
You have access to personal data on the server side only and can do the necessary development to generate EUID tokens server-side, or you are using a Private Operator.Client-Server IntegrationEUID Client-Server Integration Guide for Mobile

Integration Overview: High-Level Steps

At a high level, to integrate your mobile app with EUID using the EUID mobile SDKs, you'll need to complete the following steps:

  1. Complete the EUID account setup.

  2. Client-Server Integration Only: Integrate server-side token generation.

  3. Add the SDK for Android or iOS into your mobile app.

  4. Configure the SDK.

  5. Check that the token was successfully generated and then pass it for bidstream use.

  6. Optionally, configure the EUID GMA/IMA plugins for integration with the Google GMA SDK and the Google IMA SDK.

For details, refer to one of the following guides:

FAQs for Mobile Integrations

Here is some FAQ information relating to EUID mobile integrations:

iOS: Can I use Swift Package Manager and CocoaPods/Podspec together?

For your EUID Mobile integration, you can install the EUID Mobile SDK, the EUID GMA Plugin, and the EUID IMA Plugin by either Swift Package Manager or CocoaPods.

Our recommendation:

  • If you already use CocoaPods, particularly if you use it to integrate the Google Ad Frameworks yourself, it's best to use CocoaPods to integrate the EUID SDKs.
  • If you're new to integrating dependencies, or you already have dependencies with Swift Package Manager, we recommend that you use Swift Package Manager for your EUID mobile integration.
caution

If you already use CocoaPods, this does not prevent your app from using Swift Package Manager (SPM) to integrate the EUID SDK and plugins. However, there is a potential conflict. If you already have GMA installed with CocoaPods, and you then install the EUID Mobile SDK, which itself includes GMA, with Swift Package Manager, you end up with two copies of GMA in your implementation, which does not work.

Therefore, if you already have GMA installed and want to install EUID, be sure that you first remove GMA from CocoaPods.

tip

Podspec is the name of the file in CocoaPods that defines the libraries to be integrated with the app.

Troubleshooting Tips for Mobile Integrations

Here's some additional information to help you troubleshoot your EUID mobile integrations:

Android SDK Cannot Connect in Production Environment

A good first step in troubleshooting is to look at the health check endpoint.

From your mobile device or Android emulator, see if you can reach this endpoint:

https://prod.euid.eu/ops/healthcheck

The response should be OK.

Some error responses indicate a networking problem resulting in your app not being able to reach the EUID endpoint. For example:

  • Caused by java.net.UnknownHostException: Unable to resolve host "prod.euid.eu": No address associated with hostname

    The SDK tries to refresh the EUID token in the background. If an error such as an IOException occurs, the SDK retries multiple times. If retry is not successful, this exception is displayed.

Another good troubleshooting step is to enable logging. For details, see Enable Logging.