Reputation: 1508
GADRequest *request = [GADRequest request];
request.testDevices = [NSArray arrayWithObjects:
@"MY_SIMULATOR_IDENTIFIER",
@"MY_DEVICE_IDENTIFIER",
nil];
In Google's documentation, it says pass "MY_DEVICE_IDENTIFIER" to see test ads on a real device. I tried the UDID and the UUID, but it doesn't seem to be working. Does any one know what they are referring to when they say "MY_DEVICE_IDENTIFIER"?
When I run the application it says:
To get test ads on this device, call:r.testDevices = @[ @"cc61ecab38c2f408f90800c3ea08fb6d" ];
But I don't know what "cc61ecab38c2f408f90800c3ea08fb6d" is.
Upvotes: 0
Views: 3684
Reputation: 1508
Add AdSupport.framework
in project and use---
NSString *uniqueString= [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
GADRequest *request = [GADRequest request];
request.testDevices = [NSArray arrayWithObjects:
@"MY_SIMULATOR_IDENTIFIER",uniqueString,
nil];
Upvotes: 2
Reputation: 671
This is the UDID of your device. You can see the device identifier xcode->Organiser->Devices, tap to the device in the list to check UDID.
Upvotes: 0