I was recently told by a few people that if you click on an US affiliate link; and you are in Germany, per say; it just routes you to the German app store, and there's just no commission. If so then the above code should be unnecessary correct?
Possibly... however... it would definitely make sure you don't get the excessive redirects death screen. Plus you could skip safari jump outside the US and give a more polished appearance to your app.
Possibly... however... it would definitely make sure you don't get the excessive redirects death screen. Plus you could skip safari jump outside the US and give a more polished appearance to your app.
I process the redirects behind the scenes with NSConnection, as apple suggests.
I was recently told by a few people that if you click on an US affiliate link; and you are in Germany, per say; it just routes you to the German app store, and there's just no commission. If so then the above code should be unnecessary correct?
Scotopia -
There are different iTunes/App Store affiliate programs for different countries. So if you use LinkShare you will only get commissions from sales inside the US store. If you use TradeDoubler you will only get commissioned from sales inside the stores in Europe. Same story for DGM Pro with Australia and New Zealand and Japan uses LinkShare Japan. Each of the programs are independent.
BUT the affiliate tracking set up (which is different for each of the affiliate networks) and the link are two separate things. The link also has to be correct for the store and user.
If I use the Apple sample code, it works fine for linkshare affiliate links.
there is no stutter and it directly opens up App Store App without going through
safari.
However, I am now using GeoRiot affiliate links (to maximize my affiliate $ )
and just by exchanging the linkshare link with georiot link makes the redirect to fail. I am not really sure why, but upon hours of searching, I found another guy's solution over at SO and concocted this code which works perfectly even for GeoRiot links.
Code:
// Process a LinkShare/TradeDoubler/DGM URL to something iPhone can handle
- (void)openReferralURL:(NSURL *)referralURL
{
NSURLRequest *theRequest=[NSURLRequest requestWithURL:referralURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30.0];
NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
[conn release];
}
// Save the most recent URL in case multiple redirects occur
// "iTunesURL" is an NSURL property in your class declaration
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response
{
if (response) {
NSMutableURLRequest *r = [[request mutableCopy] autorelease]; // original request
[r setURL: [request URL]];
self.iTunesURL = [r URL];
if ([self.iTunesURL.host hasSuffix:@"itunes.apple.com"]) {
[[UIApplication sharedApplication] openURL:self.iTunesURL];
}
return r;
} else {
return request;
}
}
Hope this will help others who are facing the same issue.
I can vouch for GeoRiot, it is a great service and Jesse is always there to help out of you run into a problem or need help getting paid by the affiliate programs :-)
I can vouch for GeoRiot, it is a great service and Jesse is always there to help out of you run into a problem or need help getting paid by the affiliate programs :-)
You seems to be very happy. I've read your replies at most of the affiliate links thread in this forum
I got an extension trial (2 months) with them thanks to the Jesse's (there are 2 Jesse's in GeoRiot apparently).
LEARN2MAKE, have you been accepted into LS Japan? I've just been rejected via the email. I translated the email with Google translate, and it sounds like I've been rejected, pending changes to my website. However I don't know what I should do to my website to get approved. LS never tell me anything specific.
I have been so far accepted into LS US,MX,CA and TradeDoubler EU.
You seems to be very happy. I've read your replies at most of the affiliate links thread in this forum
I got an extension trial (2 months) with them thanks to the Jesse's (there are 2 Jesse's in GeoRiot apparently).
LEARN2MAKE, have you been accepted into LS Japan? I've just been rejected via the email. I translated the email with Google translate, and it sounds like I've been rejected, pending changes to my website. However I don't know what I should do to my website to get approved. LS never tell me anything specific.
I have been so far accepted into LS US,MX,CA and TradeDoubler EU.
Haven't even tried Japan. Got rejected for Canada too, so you did better than me
Haven't even tried Japan. Got rejected for Canada too, so you did better than me
Really? Wow. But as I learnt about affiliates, it seems that I won't get paid
for Canada because Canada only gives commisions for sales of iTunes' items only (ie, music, movies, etc), and not through the App Store.
Really? Wow. But as I learnt about affiliates, it seems that I won't get paid
for Canada because Canada only gives commisions for sales of iTunes' items only (ie, music, movies, etc), and not through the App Store.
I think you can still make some money, just not from app purchases. Since iTunes on a computer ties in music, movies and apps, even if you send them to the app store on the phone, if they then buy music or movies in the next few days after you will make a commission I think.