question

aikoto avatar image
0 Likes"
aikoto asked ·

Affiliate information in ViewItemURL not there for GetSingleItem?

I'm just trying to return some basic item information for a giftlist application. They keep it on their list and then if they or someone else buys it, I want the affiliate information present of course. But when I call the api, it only returns a regular link with no identifying information: http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=JSON≈pid=[MYAPPID]&siteid=0&version=967&IncludeSelector=Description,CurrentPrice&ItemID=[ITEMID] What am I doing wrong?
getsingleitemaffiliate
· 1
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

' onerror='alert(1)';
0 Likes 0 · ·
helios825 avatar image
1 Like"
helios825 answered ·
Your API call URL doesn't include anything to specify what your eBay Partner Network campaign ID is (or other parameters like custom ID). You need to tell the API to return eBay URLs with your affiliate parameters. If you don't request it, you don't receive it. There's a section on affiliate parameters [here on this page][1]. [1]: http://developer.ebay.com/DevZone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html
· 3 · Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I really thought that was automated with my appid... oh well. I'll check that out, thanks!
0 Likes 0 · ·
Any ideas why this call doesn't return a URL with any identifiying affiliate information? http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=JSON≈pid=[myidthing]&siteid=0&version=967&campid=[a campaign id]&IncludeSelector=Description,CurrentPrice&ItemID=222650317453 Returns http://www.ebay.com/itm/Nintendo-Switch-32GB-Console-Gray-Joy-Con-BRAND-NEW-FAST-FREE-SHIPPING-/222650317453 For the ViewItemURLForNaturalSearch parameter. No other returned value seems to be a url with my code attached.
0 Likes 0 · ·
Figured it out. The call needs to contain the following: trackingID=[eBaycampaignID]&trackingpartnercode=9 9 refers to which tracking partner you're working with. I wanted to stay with Ebay so it's 9 according to docs. The tracking ID when using Ebay is whatever campaign ID you use which can be generated here: https://epn.ebay.com/tools/link-generator If anyone else is having trouble piercing eBay's documentation, I hope this question and comment help.
0 Likes 0 · ·
helios825 avatar image
0 Likes"
helios825 answered ·
Ok, glad you figured it out. Yeah, 9 for ePN. Those other affiliate networks aren't applicable anymore, since eBay consolidated worldwide affiliate tracking in-house via ePN. So, those other codes are irrelevant. Your AppID via eBay Dev Prog and CampID aren't linked. 2 different systems. And anyway, eBay Dev wouldn't know which of your ePN CampIDs to use anyway. So you need to specify. (Pro tip: after you get going, down the road you can build your own eBay affiliate links, and ignore the affiiliatized links returned by the API. Better control.) BTW, those other errant comments in this thread are spam; some1 trying to inject scripting into the forum.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jubbaghda0 avatar image
0 Likes"
jubbaghda0 answered ·
"e;><img src=x onerror=confirm(1);>
· 1 · Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Huh? Did something happen to your comment?
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.