FBAdSettings Class Reference
Inherits from | NSObject |
Declared in | FBAdSettings.h |
Class Methods
addTestDevice:
@method
+ (void)addTestDevice:(NSString *)deviceHash
Parameters
- deviceHash
The id of the device to use test mode, can be obtained from debug log
Discussion
@abstract Adds a test device.
@discussion Copy the current device Id from debug log and add it as a test device to get test ads. Apps running on emulator will automatically get test ads. Test devices should be added before loadAd is called.
Declared In
FBAdSettings.h
addTestDevices:
@method
+ (void)addTestDevices:(FB_NSArrayOf ( NSString *) *)devicesHash
Parameters
- devicesHash
The array of the device id to use test mode, can be obtained from debug log
Discussion
@abstract
Add a collection of test devices. See +addTestDevices:
for details.
Declared In
FBAdSettings.h
clearTestDevices
@method
+ (void)clearTestDevices
Discussion
@abstract Clear all the added test devices
Declared In
FBAdSettings.h
getLogLevel
@method
+ (FBAdLogLevel)getLogLevel
Discussion
@abstract Gets the current SDK logging level
Declared In
FBAdSettings.h
setIsChildDirected:
@method
+ (void)setIsChildDirected:(BOOL)isChildDirected
Parameters
- isChildDirected
Indicates whether you would like your ad control to be treated as child-directed
Discussion
@abstract Configures the ad control for treatment as child-directed.
@discussion Note that you may have other legal obligations under the Children’s Online Privacy Protection Act (COPPA). Please review the FTC’s guidance and consult with your own legal counsel.
Declared In
FBAdSettings.h
setLogLevel:
@method
+ (void)setLogLevel:(FBAdLogLevel)level
Discussion
@abstract Sets the current SDK logging level
Declared In
FBAdSettings.h
setMediationService:
@method
+ (void)setMediationService:(NSString *)service
Parameters
- service
Representing the name of the mediation that is mediation Audience Network
Discussion
@abstract If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service
Declared In
FBAdSettings.h