Getting started
Last updated
Last updated
This documentation will guide you through all the steps needed to display Ogury ads on the iOS platform.
Xcode version: 15 or later.
Target iOS version: 12 or later.
.
and .
The asset key follows the format: OGY-XXXXXXXXXXXX
, where X represents an uppercase letter or digit. In the code samples provided, we will use the placeholder string OGY-XXXXXXXXXXXX
to refer to this asset key.
To import the latest version of the Ogury SDK into your project:
Open your application's Podfile
.
Add the following line to your target:
For details on the latest Ogury SDK release, please refer to the release notes.
In your project's Build Settings, make the following changes:
Add the -ObjC
flag to the Other Linker Flags section.
When using a Consent Management Platform (CMP), it is recommended to wait for the CMP to establish the consent status before initializing the Ogury SDK.
When your app is registered and the Ogury SDK is imported, initialize it by calling Ogury.start()
before accessing any Ogury SDK functionalities.
The start
method requires the Ogury asset key associated with your app. If you have not an asset key yet, please refer to the first step to create one.
Though optional, the StartCompletionBlock
is recommended. It provides callbacks for successful initialization or errors. If initialization fails, the listener returns an OguryError
with an error code
and localizedDescription
, helping you troubleshoot. The possible errors are defined in the OguryStartErrorCode
enum for easy reference.
Ogury offers four distinct ad formats. You can refer to the following sections to proceed with the integration:
Ogury is part of the IAB Authorized Sellers for Apps initiative to fight inventory fraud for applications. It is recommended that you update your app-ads.txt
file to include Ogury.
Enum value | Description |
---|---|
ModuleMissing
The SDK could not be started because a required SDK module is missing.
ModuleFailedToStart
The SDK could not be started because one of the required SDK modules failed to start.