Java Code Examples for com.facebook.ads.AdSettings#addTestDevice()

The following examples show how to use com.facebook.ads.AdSettings#addTestDevice() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: react-native-fbads   File: AdSettingsManager.java    License: MIT License 5 votes vote down vote up
private void restoreSettings() {
    for (String hash: mTestDeviceHashes) {
        AdSettings.addTestDevice(hash);
    }

    AdSettings.setIsChildDirected(mIsChildDirected);
    AdSettings.setMediationService(mMediationService);
    AdSettings.setUrlPrefix(mUrlPrefix);
}
 
Example 2
Source Project: react-native-fbads   File: AdSettingsManager.java    License: MIT License 4 votes vote down vote up
@ReactMethod
public void addTestDevice(String deviceHash) {
    AdSettings.addTestDevice(deviceHash);
    mTestDeviceHashes.add(deviceHash);
}