My banner is not 640x640. How to set up the right size?
Use the following method with the desired size:
(void)setDefaultImageSize:(nonnullNSString*)size;
I need to play Audio Ads along with Dialogue Ads. What I need to do?
Just use
[_admanprepareWithType:AdmanTypeAny];
instead of
[_admanprepareWithType:AdmanTypeVoice];
How to handle AdmanStateError state?
In case of an error, you will receive AdmanStateError state. Please find the ways to handle it below:
generalSDKerrorshandler-(void)admanStateDidChange:(Adman*)sender{switch(sender.state){caseAdmanStateError:do_something();break;default:break;}}// to get detailed error info (if needed) -(void)errorReceived:(nullableNSError*)error{do_something();}
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:
Value Name
Description
AdmanPreroll
Will play only ads that should be played before the content or ads without specific slot.
AdmanMidroll
Will play only ads that should be played in the middle of the content or ads without specific slot.
AdmanPostroll
ill play only ads that should be played after the content or ads without specific slot.
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.