iOS SDK code samples overview
This section contains various code samples to help you in the development of your app.
Topics | Description |
---|---|
Add a Transition Animation | How to transition between multiple creatives. |
Add Targeting Parameters | How to add targeting parameters to a ad unit. |
Allow Multiple Ad Sizes | How to enable a banner ad to receive multiple ad sizes. |
Click Through URL | How click throughs work and how to implement them. |
Configure SDK Logging | How to enable SDK logging and set logging levels. |
Configure Video Player Options | How to configure video player options. |
Control Ad Unit Alignment | List of the types of alignments for banner ads. |
Control Landing Page Load Visibility | How to configure the landing page load behavior on ad clicks. |
Force Creative ID | How to specify the ID of a creative that should be forced to appear in a placement. |
Get Facebook Demand for Native | How to get assets for Facebook native ads. |
Global Placement ID (GPID) | Allows publishers to define their own global publisher identifier to represent a placement on iOS. |
iOS ANSDK Settings | List all details about the methods or properties, input parameters, returned values, restrictions, guidelines, and examples for the iOS ANSDK settings |
Lazy Loading an Ad Unit | How to lazy load an ad unit to control when trackers, including 3rd party trackers, are fired. |
Listen to Native Ad Events | How to listen to events, such as Ad Click, in native ads. |
Listener for Ad About To Expire | Listener for ads which are about to expire and are expired. |
Localize Browser OK Button | How to add localization to a browser's OK button. |
Open Ad Clicks in the Native Browser | How to choose if native browser will open if the ad is clicked. |
Pass Custom Keywords | How to pass custom keywords to the request body. |
Receive Ad View Status Events | How to receive status events for the ad unit. |
Request Ads Over HTTPS | How to request ads over HTTPS. |
Resize Ads to fit the Screen or Banner Ad View | How to resize ads to fit its container. |
Resize the Banner Ad View to the Size of the Winning Creative | How to resize the ad unit to fit the creative size. |
Set Reserve Prices | How to minimum bid amount you'll accept to show an ad. |
Support to Pass Traffic Source and External Inventory Codes | How to break out inventory more granularly than the placement level. |
Toggle PSAs | How to enable PSAs. |