FBAdSettings
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

AdSettings contains global settings for all ad controls.

Inherits from:NSObject
Declared in:FBAdSettings.h
Phương thức nhóm
addTestDevice:

Adds a test device.

Thông sốMô tả
deviceHash

The id of the device to use test mode, can be obtained from debug log

+ (void) addTestDevice:(NSString *)deviceHash;
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.

Đã tuyên bố trong: FBAdSettings.h
addTestDevices:

Add a collection of test devices. See +addTestDevices: for details.

Thông sốMô tả
deviceHash

The array of the device id to use test mode, can be obtained from debug log

+ (void) addTestDevices:(NSArray *)devicesHash;
Đã tuyên bố trong: FBAdSettings.h
clearTestDevices

Clear all the added test devices

+ (void) clearTestDevices;
Đã tuyên bố trong: FBAdSettings.h
setIsChildDirected:

Configures the ad control for treatment as child-directed.

Thông sốMô tả
isChildDirected

Indicates whether you would like your ad control to be treated as child-directed

+ (void) setIsChildDirected:(BOOL)isChildDirected;
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.

Đã tuyên bố trong: FBAdSettings.h
setUrlPrefix:

Sets the url prefix to use when making ad requests.

+ (void) setUrlPrefix:(NSString *)urlPrefix;
Discussion:

This method should never be used in production.

Đã tuyên bố trong: FBAdSettings.h