Apple IDFA の送信
adbrixの計測機能、adPOPcornのオファーウォール、LiveOperationといったサービスをご利用される場合、弊社のframeworkにAppleのIDFAを登録してください。
AdSupport.frameworkを追加した後、setAppleAdvertisingIdentifier APIを
AppDelegate の application: didFinishLaunchingWithOptions: で呼び出し、IDFA を登録します。
(*ご注意:igaworksCoreWithAppKeyを呼び出す前にIDFAを登録します。)
#import "AppDelegate.h"
#import <AdSupport/AdSupport.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if (NSClassFromString(@"ASIdentifierManager")){
NSUUID *ifa =[[ASIdentifierManager sharedManager]advertisingIdentifier];
BOOL isAppleAdvertisingTrackingEnalbed = [[ASIdentifierManager sharedManager]isAdvertisingTrackingEnabled];
[IgaworksCore setAppleAdvertisingIdentifier:[ifa UUIDString] isAppleAdvertisingTrackingEnabled:isAppleAdvertisingTrackingEnalbed];
NSLog(@"[ifa UUIDString] %@", [ifa UUIDString]);
}
[IgaworksCore igaworksCoreWithAppKey:@"YOUR_APP_KEY" andHashKey:@"YOUR_HASH_KEY"];
return YES;
}