Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Business Forums > Business, Legal, & App Store

Reply
 
LinkBack Thread Tools Display Modes
Old 03-10-2009, 05:23 PM   #1 (permalink)
dot
Registered Member
 
Join Date: Feb 2009
Posts: 72
Default is it possible to have affiliatized app store links go directly to the app store?

I'm trying to link from the lite version to the paid version of my app.

When I use the non-affiliate link (phobos.apple.com) it opens up App Store.app.. but using the linksynergy link, it routes through safari..

is there a way around this?

thanks!
dot is offline   Reply With Quote
Old 03-10-2009, 05:25 PM   #2 (permalink)
Tutorial Author
 
Steaps's Avatar
 
Join Date: Oct 2008
Location: Ontario, Canada
Posts: 466
Default

Switching:
Code:
http://phobos.apple.com...
With:
Code:
http://itunes.apple.com...
Does the trick i believe.
Steaps is offline   Reply With Quote
Old 03-10-2009, 05:41 PM   #3 (permalink)
dot
Registered Member
 
Join Date: Feb 2009
Posts: 72
Default

Quote:
Originally Posted by Steaps View Post
Switching:
Code:
http://phobos.apple.com...
With:
Code:
http://itunes.apple.com...
Does the trick i believe.
Yeah, that works for non-affiliate links.. but I'd like to use links through the itunes affilate program.
dot is offline   Reply With Quote
Old 03-10-2009, 06:57 PM   #4 (permalink)
Tutorial Author
 
Steaps's Avatar
 
Join Date: Oct 2008
Location: Ontario, Canada
Posts: 466
Default

Quote:
Originally Posted by dot View Post
Yeah, that works for non-affiliate links.. but I'd like to use links through the itunes affilate program.
Ah, i mis-read that, sorry.
Steaps is offline   Reply With Quote
Old 03-10-2009, 09:44 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 356
Default

I wouldnt do that if I were you, affiliated links only work for US store.
erotsppa is offline   Reply With Quote
Old 03-10-2009, 09:51 PM   #6 (permalink)
New Member
 
Join Date: Mar 2009
Location: Silicon Valley, CA
Posts: 135
Default

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).

Dave
AEDave is offline   Reply With Quote
Old 03-10-2009, 10:17 PM   #7 (permalink)
dot
Registered Member
 
Join Date: Feb 2009
Posts: 72
Default

Quote:
Originally Posted by erotsppa View Post
I wouldnt do that if I were you, affiliated links only work for US store.
Oh, I didn't realize that.. thanks.

I guess I'll just use the regular links for now.
dot is offline   Reply With Quote
Old 03-11-2009, 12:51 AM   #8 (permalink)
Administrator
 
Chris Stewart's Avatar
 
Join Date: Mar 2008
Location: Richmond, VA
Age: 29
Posts: 746
Default

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.
__________________
Founder, Locomo Labs, LLC
SocialBlast -- iPhone/iPad -- Update Twitter/Facebook/LinkedIn/Foursquare

Previous owner, and original founder, of iPhone Dev SDK
Chris Stewart is offline   Reply With Quote
Old 03-11-2009, 12:56 AM   #9 (permalink)
dot
Registered Member
 
Join Date: Feb 2009
Posts: 72
Default

hmmm. I guess I could load the link inside a webview in the app..?
dot is offline   Reply With Quote
Old 07-01-2009, 01:01 PM   #10 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 88
Default

I think this should solve the question?

Technical Q&A QA1629: Launching the App Store from an iPhone application
kiancheong is offline   Reply With Quote
Old 07-04-2009, 12:29 AM   #11 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 88
Default

there's some mistake in the code provided by Apple, make sure not copy paste, yeah...
kiancheong is offline   Reply With Quote
Old 07-04-2009, 03:00 AM   #12 (permalink)
Daddy Cool
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,472
Default

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...
MarkC is offline   Reply With Quote
Old 07-04-2009, 11:23 PM   #13 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 88
Default

that's weird... i've seen many lite versions refer to full versions in their app! *confused*
kiancheong is offline   Reply With Quote
Old 07-05-2009, 11:08 AM   #14 (permalink)
Daddy Cool
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,472
Default

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.
MarkC is offline   Reply With Quote
Old 08-08-2009, 08:15 PM   #15 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

Quote:
Originally Posted by kiancheong View Post
there's some mistake in the code provided by Apple, make sure not copy paste, yeah...
Yeah it looks like it is missing some important details. Anyone use this that could fill us in on the details?

Thanks

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Old 10-19-2009, 02:52 PM   #16 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Denver, CO
Posts: 12
Default

Quote:
Originally Posted by erotsppa View Post
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.
Jlakes is offline   Reply With Quote
Old 10-19-2009, 02:53 PM   #17 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Denver, CO
Posts: 12
Default

Quote:
Originally Posted by dot View Post
hmmm. I guess I could load the link inside a webview in the app..?
Did this work?
Jlakes is offline   Reply With Quote
Old 11-06-2009, 10:25 PM   #18 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 88
Default

Quote:
Originally Posted by bytor99999 View Post
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...
kiancheong is offline   Reply With Quote
Old 11-10-2009, 09:49 PM   #19 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: San Francisco
Posts: 15
Default

Quote:
Originally Posted by kiancheong View Post
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.
PeddlePower is offline   Reply With Quote
Old 03-20-2010, 02:24 PM   #20 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,028
Default

Just to recap here... having linkshare links directly in your app is generally not a good idea and no one is really doing it?
scotopia is offline   Reply With Quote
Old 03-20-2010, 08:20 PM   #21 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 267
Default

Why not just check the region that the phone is set to, and then change the url based on that? linkshare link for US region and normal for all other?
georgeburns is offline   Reply With Quote
Old 03-20-2010, 08:26 PM   #22 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,028
Default

Quote:
Originally Posted by georgeburns View Post
Why not just check the region that the phone is set to, and then change the url based on that? linkshare link for US region and normal for all other?
That's certainly a logical thought; good idea.
scotopia is offline   Reply With Quote
Old 03-26-2010, 02:45 AM   #23 (permalink)
Town Critic
 
Join Date: Oct 2009
Posts: 536
Default

Quote:
Originally Posted by georgeburns View Post
Why not just check the region that the phone is set to, and then change the url based on that? linkshare link for US region and normal for all other?
How do you do this?
__________________
My DJ is the BEST way to listen to music!
My DJ on iTunes | My DJ on Facebook

My Blog for iPhone Developers
Latest Blog Post: Financial Reports Don’t Match Sales Data? Huh?
Gudus is offline   Reply With Quote
Old 03-26-2010, 09:42 AM   #24 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 267
Default

Sorry for the late reply... I haven't used the stuff in months, but from memory... something like this.
Code:
CFLocaleRef userLocaleRef = CFLocaleCopyCurrent(); 

if (userLocalRef != "en_US") then
regular link
else
affil link
georgeburns is offline   Reply With Quote
Old 03-26-2010, 11:00 AM   #25 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,028
Default

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 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 272
23 members and 249 guests
ADY, AragornSG, Bertrand21, Dani77, Dattee, fkmtc, HDshot, HemiMG, iDifferent, jakerocheleau, JasonR, jimbo, macquitzon216, mer10, prchn4christ, Rudy, sacha1996, silverwiz, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0