Objective-C SDK FAQ
My banner is not 640x640. How to set up the right size?
Use the following method with the desired size:
I need to play Audio Ads along with Dialogue Ads. What I need to do?
Just use
instead of
How to handle AdmanStateError state?
In case of an error, you will receive AdmanStateError state. Please find the ways to handle it below:
How to handle ad preloading?
When using the ad preloading, it is necessary to call the method [adman reportAdEvent:@"can_show"]; at the time of possible launch of advertising, even in cases, when advertising wasn't actually loaded or played.
This method provides the measurement of advertising capacity.
How to create two instances of Adman with different regions?
Please find the example below:
How to call an ad with specific slot?
In order to specify the slot for an ad, the below method should be called before calling prepare
Possible values for SlotName:
How to change the look of the DefaultView?
Background color can be changed using the following method:
Font color can be changed using the following method:
Buttons color can be changed using the following method:
Buttons text color can be changed using the following method:
For custom button the following method can be used:
How to set the size of Ad View?
You can use the following method in order to change the size and position of the Ad View:
In the parameters you need to set the position and size of the desired Ad View.
Please find the usage example HERE
How to send Consent String?
If you need to send Consent String in order to use IAB Europe Transparence and Consent Framework, use the following parameter:
This parameter must be used with 'prepare' method when you are preloading an ad. Please find some usage examples below:
For CCPA consent string please use the following before the ad request:
How to customize the look of the ad view?
First of all, you need to import AdmanUIBase.h header. Then, after Adman initialisation you will need to create AdmanUIBase class.
This class must be initialised before calling [Adman prepare]
On the ad playback, the following method should be called:
In order to customize the look of the view, you will need to inherit the AdmanUIBase classe and implement its shared methods:
You can find the example HERE (files: AdmanUIExt.swift and PlayerVC.swift )
How to use variables for targeting in the SDK?
Please use the following method BEFORE requesting an ad:
How to enable DTMF?
To enable DTMF ads detection, the below method can be used:
Please note, that the above method shouldn't be used if your app is not working with DTMF ad insertion.
To disable DTMF detection, please use the below method:
Last updated