Provides all available methods for displaying native ads. More...
#import <FlurryAdNative.h>
Inherits NSObject.
Instance Methods | |
(id) | - initWithSpace: |
Initialize the native ad object. More... | |
(void) | - fetchAd |
Fetch an ad for this ad object. More... | |
(NSArray *) | - assetListForType: |
List of assets that match the specified asset type. More... | |
(void) | - removeTrackingView |
Removes the tracking view associated with the ad object. More... | |
(BOOL) | - isVideoAd |
Method which returns if its a video Ad. More... | |
(void) | - setPencilViewToTrack:withExpandButton:andCTAButton: |
Sets up Pencil view to track which will be used to send impression beacons. A click on this view sets the display state to expanded and the delegate callback adNativeExpandToggled: is invoked. The cta button provided in this call is used to invoke landing page. More... | |
(void) | - setExpandedViewToTrack:withExpandButton:andCTAButton: |
Sets up expanded view to track which will be used to send click beacons. A click on this view loads the landing page. The expand button provided in this call is used to collpase the expanded view of ad. More... | |
Properties | |
NSString * | space |
Read only property that can be used to retrieve the ad space that was passed into an initializer routine. An Ad Space is an area within your app that is designated to display ads. Ad spaces need to be setup and configured on the Flurry developer portal. More... | |
id< FlurryAdNativeDelegate > | adDelegate |
Sets the object to receive various delegate methods. More... | |
BOOL | ready |
Returns if an ad is currently ready to display for this ad object. More... | |
BOOL | expired |
Returns if an ad has expired. More... | |
kFlurryAdNativeDisplayState | displayState |
List of assets that match the specified asset type. More... | |
NSArray * | assetList |
This property will retrieve the native ad's assets. The assets will be available when the ad is ready. More... | |
UIView * | trackingView |
The UIView that needs click tracking. More... | |
UIViewController * | viewControllerForPresentation |
This property should be set to the view controller that needs to be used to present a full screen when the ad is clicked. Typically this will the topmost content view controller. More... | |
UIView * | videoViewContainer |
This property should be set to the view which will have the Video Player embedded for Native Video Ads. More... | |
FlurryAdTargeting * | targeting |
This property should be used for ad targeting based on parameters such as location, targeting kewords, age and gender. More... | |
Provides all available methods for displaying native ads.
Set of methods that allow publishers to configure, target, and deliver native ads to their customers.
For information on how to use Flurry's Ads SDK to attract high-quality users and monetize your user base see Support Center - Publishers.
Definition at line 34 of file FlurryAdNative.h.
- (NSArray*) assetListForType: | (kAssetType) | type |
List of assets that match the specified asset type.
This property can be used to retrieve a subset of the assets based on the asset view type.
- (void) fetchAd |
Fetch an ad for this ad object.
- (id) initWithSpace: | (NSString *) | space |
Initialize the native ad object.
This method initializes the ad object and gets it ready to fetch and serve a native ad.
space | represents the placement of the ad in your app. Typically all native ads that are presented within a single view controller will have the same ad space. For example, a carousel or a stream table view may have the following spaces "CAROUSEL_ADS" and "STREAM_ADS" . |
- (BOOL) isVideoAd |
Method which returns if its a video Ad.
Use this property to figure out if its a Video Ad
- (void) removeTrackingView |
Removes the tracking view associated with the ad object.
Set this property prior to the reuse of a UIView to ensure that the view is not tracked by more than one ad object.
- (void) setExpandedViewToTrack: | (UIView *) | expandedView | |
withExpandButton: | (UIButton *) | expandButton | |
andCTAButton: | (UIButton *) | ctaButton | |
Sets up expanded view to track which will be used to send click beacons. A click on this view loads the landing page. The expand button provided in this call is used to collpase the expanded view of ad.
expandedView | A UIView used to build the native ad in expanded state |
expandButton | A UIButton to collapse to pencil view. Please use the collapse button of the expanded view |
ctaButton | A UIButton to open the landing page from expanded view. |
- (void) setPencilViewToTrack: | (UIView *) | pencilView | |
withExpandButton: | (UIButton *) | expandButton | |
andCTAButton: | (UIButton *) | ctaButton | |
Sets up Pencil view to track which will be used to send impression beacons. A click on this view sets the display state to expanded and the delegate callback adNativeExpandToggled: is invoked. The cta button provided in this call is used to invoke landing page.
pencilView | A UIView used to build the native ad in collapsed state |
expandButton | A UIButton to expand the pencil view. Please use the expand button of the pencil view |
ctaButton | A UIButton to open the landing page from minimal view. |
|
readwritenonatomicweak |
Sets the object to receive various delegate methods.
This method allows you to register an object that will receive notifications at different phases of native ad serving.
delegate | The object to receive notifications of various ad actions. |
Definition at line 68 of file FlurryAdNative.h.
|
readnonatomicstrong |
This property will retrieve the native ad's assets. The assets will be available when the ad is ready.
Definition at line 218 of file FlurryAdNative.h.
|
readwritenonatomicassign |
List of assets that match the specified asset type.
This property can be used to set the exapnd state of the ad. User need to set this value appropriately. Default is FLURRY_NATIVE_AD_EXPANDED
Definition at line 192 of file FlurryAdNative.h.
|
readnonatomicassign |
Returns if an ad has expired.
This method will verify if the ad associated with this native ad object has expired. Please call fetch again or discard this native ad object and create a new native object when the ad expires
Definition at line 160 of file FlurryAdNative.h.
|
readnonatomicassign |
Returns if an ad is currently ready to display for this ad object.
This method will verify if an ad is currently available for this ad object. If an ad is not available, you can call fetchAd: to load a new ad.
Definition at line 105 of file FlurryAdNative.h.
|
readnonatomiccopy |
Read only property that can be used to retrieve the ad space that was passed into an initializer routine. An Ad Space is an area within your app that is designated to display ads. Ad spaces need to be setup and configured on the Flurry developer portal.
Definition at line 44 of file FlurryAdNative.h.
|
readwritenonatomicstrong |
This property should be used for ad targeting based on parameters such as location, targeting kewords, age and gender.
Definition at line 315 of file FlurryAdNative.h.
|
readwritenonatomicstrong |
The UIView that needs click tracking.
Set this property to track clicks on a view. For a table view controller the UITableViewCell that is used to display the ad can be set as the tracking view.
Definition at line 254 of file FlurryAdNative.h.
|
readwritenonatomicstrong |
This property should be set to the view which will have the Video Player embedded for Native Video Ads.
Definition at line 301 of file FlurryAdNative.h.
|
readwritenonatomicstrong |
This property should be set to the view controller that needs to be used to present a full screen when the ad is clicked. Typically this will the topmost content view controller.
Definition at line 279 of file FlurryAdNative.h.