FBAdSettings
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

AdSettings contains global settings for all ad controls.

Superclass:NSObject
Declared in:FBAdSettings.h
วิธีการคลาส
addTestDevice:

Adds a test device.

พารามิเตอร์คำอธิบาย
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.

ให้คำรับรองไว้ใน: FBAdSettings.h
addTestDevices:

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

พารามิเตอร์คำอธิบาย
devicesHash

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

+ (void) addTestDevices:(FB_NSArrayOf(NSString *)*)devicesHash;
ให้คำรับรองไว้ใน: FBAdSettings.h
clearTestDevices

Clear all the added test devices

+ (void) clearTestDevices;
ให้คำรับรองไว้ใน: FBAdSettings.h
getLogLevel

Gets the current SDK logging level

+ (FBAdLogLevel) getLogLevel;
ให้คำรับรองไว้ใน: FBAdSettings.h
setIsChildDirected:

Configures the ad control for treatment as child-directed.

พารามิเตอร์คำอธิบาย
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.

ให้คำรับรองไว้ใน: FBAdSettings.h
setLogLevel:

Sets the current SDK logging level

+ (void) setLogLevel:(FBAdLogLevel)level;
ให้คำรับรองไว้ใน: FBAdSettings.h
setMediationService:

If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service

พารามิเตอร์คำอธิบาย
service

Representing the name of the mediation that is mediation Audience Network

+ (void) setMediationService:(NSString *)service;
ให้คำรับรองไว้ใน: 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.

ให้คำรับรองไว้ใน: FBAdSettings.h