CECardAd
Overview
CECardAd
is used to integrate ad with predefined layout.
Interface
eventDelegate
eventDelegate
Declaration
Discussion
Delegate which is notified by SDK when CECardAd
triggered the ad event.
ad
ad
Declaration
Discussion
An Ad
object containing data of the loaded ad.
adToken
adToken
Declaration
Discussion
A random identifier string generated by SDK.
adUIView
adUIView
Declaration
Discussion
The visual representation of the loaded ad. Supplied after ad is loaded.
coverImagePath
coverImagePath
Declaration
Discussion
The path to the file of cover image of the loaded ad if the loaded ad has video content.
aspectRatio
aspectRatio
Declaration
Discussion
The aspect ratio of ad content. (Width / Height)
It would be kCEUnknownAdContentAspectRatio
if the ad hasn't loaded.
customEventExtra
customEventExtra
Declaration
Discussion
Extra from custom event
- initWithVideoViewProfile
- initWithVideoViewProfile
Declaration
Parameters
name
description
videoViewProfile
profile for customized view. Please check CEVideoViewProfileCardMask for valid flags.
Return Value
A CECardAd
instance.
Discussion
init CECardAD with CEVideoViewProfile
- loadAdInstantWithInfo:
- loadAdInstantWithInfo:
Declaration
Parameters
name
description
info
CERequestInfo
instance used to specify the parameters for ad request.
error
NSError instance used to specify the error for ad request.
Discussion
Start loading ad content process synchronously, and it will ignore the timeout in CERequestInfo.
- loadAdAsyncWithInfo:
- loadAdAsyncWithInfo:
Declaration
Parameters
name
description
info
CERequestInfo
instance used to specify the parameters for ad request.
reqDelegate
id<CECardAdRequestDelegate
> instance that receive request ad event.
Discussion
Start loading ad content process asynchronously.
- play
- play
Declaration
Discussion
Invoking this method marks the ad as allowed to play. A ad starts when it is both marked as allowed to play and visible to users.
- stop
- stop
Declaration
Discussion
Invoking this method marks the ad as not allowed to play. A ad stops immediately when stop
is invoked and it will never resume until play
is invoked.
- mute
- mute
Declaration
Discussion
Invoking this method turns off the volume of the ad immediately.
- unmute
- unmute
Declaration
Discussion
Invoking this method turns on the volume of the ad immediately.
- isMute
- isMute
Declaration
Return Value
YES
if the ad is audible; otherwise, NO
;
- hasVideoContent
- hasVideoContent
Declaration
Return Value
YES
if it is a video ad; otherwise, NO
;
- getTotalFileSize
- getTotalFileSize
Declaration
Return Value
The total size of the creative files downloaded for this ad.
Last updated