I need to retrieve the Ad fee for promoted listings. I went through all the APIs and have not found any good solution for this.
I can get the bidPercentage with getAd and calculate it myself for the specific itemId but it doesn't help with old orders as the percentage can change. Also going through all the campaigns and ads to find the one for the specific item is troublesome.
getTransactions gives me the fee transaction but with no relevant info to link it to any specific order, just the itemId. One way would be to get the first AD_FEE transaction after the payment transaction for the order, but can I be sure that it will be the correct fee ALWAYS?
I'm posting this regarding the new API but if anyone knows how it can be done under the old Trading API that would help as well.
Thanks