In short, no. The link has to be registered by Linkshare through their web server, and I haven't heard of a way around that. You can always contact your LS account manager though (should be in your home screen or buried under account info) and see if there's a workaround in the works (especially, I'd think, for mobile advertising units).
You could try a server side redirect from a URL you own. So http://blah.com/app1 would do a redirect to the LS link. Err, I guess that wouldn't do anything on the iPhone, so nevermind.
Don't forget the fact that Apple will probably reject a lite version that has a link in it to the full version. Or at least they did with ours, and pointed me in the direction of the guidelines, saying a lite or demo version could not reference a full version...
It could have been the fact that my 'reference' was actually a 'fake' button that made it look like the (paid-for) feature in question but then took you to the App Store to buy it - they were not impressed by that little tactic LOL.
I wouldnt do that if I were you, affiliated links only work for US store.
Just a little clarification as this is a very commonly misunderstood point. The iTunes Store is different for each country and as a result specific iTunes Stores require specific affiliate links. There are twenty plus stores that have affiliate programs, out of the 60 plus total, and these are available through three different affiliate networks.
So to clarify Erotsppa's post: Only LinkShare enabled affiliate links for the US iTunes affiliate program will work for the US store.
Yeah it looks like it is missing some important details. Anyone use this that could fill us in on the details?
Thanks
Mark
oops... sorry, havent' checked this thread lately...
here's my implementation:
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 *)redirectResponse {
self.iTunesURL = [redirectResponse URL];
return request;
}
// No more redirects; use the last URL saved
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[[UIApplication sharedApplication] openURL:self.iTunesURL];
}
however, one thing i noted here is that the app would crash if the redirect fails... comments appreciated... thanks...
oops... sorry, havent' checked this thread lately...
here's my implementation:
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 *)redirectResponse {
self.iTunesURL = [redirectResponse URL];
return request;
}
// No more redirects; use the last URL saved
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[[UIApplication sharedApplication] openURL:self.iTunesURL];
}
however, one thing i noted here is that the app would crash if the redirect fails... comments appreciated... thanks...
Hmmm... noticed the same thing too. Seems like if the website takes too long to respond, the app gets shutdown (as being non-responsive)?
(Kinda hard to expect a website to be as quick as an app, IMHO.)
---
Correction: my crash was unrelated. Seems to be running correctly now.
Last edited by PeddlePower; 11-11-2009 at 11:52 AM.
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?