Publisher Settings

The SDK provides publishers the option to specify if the user’s Advertising ID and/or the Application ID can be shared with creatives that request access to this information.

By default, the values of shareAdvertiserID and shareApplicationID are set to false so that neither Advertiser ID nor Application ID is shared with creatives. Please note that the Advertising ID is only available to the SDK if the user has enabled this in OS-specific settings.

Sharing the Advertiser ID

The following allows the Advertiser ID to be shared with creatives that request this information.

Please note the availability of the Advertiser ID may be affected by regional privacy policies.

YASAds.setShareAdvertiserIdEnabled(true);
YASAds.setShareAdvertiserIdEnabled(true)
YASAds.sharedInstance.shareAdvertiserId = YES;
YASAds.sharedInstance.shareAdvertiserId = true

Sharing the Application ID (application’s package)

The following allows the Application ID to be shared with creatives that request this information.

YASAds.setShareApplicationIdEnabled(true);
YASAds.setShareApplicationIdEnabled(true)
YASAds.sharedInstance.shareApplicationId = YES;
YASAds.sharedInstance.shareApplicationId = true