Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTunesConnect Autoingest for financial earnings reports [closed]

Apple has for some time had a tool, AutoIngest.class for downloading iTunes Connect sales and trend reports.

Is there is a similar tool (or modified use of it) to pull the financial reports (more specifically the Earnings report from the "Payments and Financial Reports" page) without manually downloading them for every month/region?

like image 377
user1116933 Avatar asked Jul 18 '13 00:07

user1116933


3 Answers

Edit Jan 2017: The Autoingestion tool has been retired and replaced with a new one, per https://help.apple.com/itc/appsreporterguide/#/itc0f2481229

After downloading the Reporter.zip with new .jar and .properties files, and adding your login to the properties file, you can then download the same file as previously using this equivalent command:

java -jar Reporter.jar p=Reporter.properties m=Normal Finance.getReport 80000000, CA, Financial, 2014, 05

Some caveats:

  • the properties file must be in current directory
  • note the leading 00 is no longer needed on the vendor_id
  • the output is now Successfully downloaded 80000000_0214_CA.txt.gz instead of just 80000000_0214_CA.txt.gz (in case you're scripting this)

I left the older info below to help people transition.

(end edit)

Yes, the same autoingest tool provided by Apple will also download financial reports. You can find the guide here, which states that the command is run with:

java Autoingestion <properties_filename> <vendor_id> <region_code>
<report_type> <fiscal_year> <fiscal_period>

Notice that the syntax is different from using it for sales reports. E.g. when providing the vendor ID, include two leading zeroes before your vendor ID number.

Thus, I can run it with this command to nominally retrieve the financial report for Canada for 2014 for May (my vendor number obscured):

java Autoingestion login.properties 0080000000 CA DRR 2014 05

Note that the fiscal_period is 3 months ahead (more info), so providing 2014 05 will download the financial report for 02 (February). The resulting file will reflect the actual month sold. I.e. this is the output of the command:

80000000_0214_CA.txt.gz
File Downloaded Successfully

Thus, as of right now, near the end of June (06), I can run this command:

java Autoingestion login.properties 0080000000 AU DRR 2014 08

and download the May sales:

80000000_0514_AU.txt.gz
File Downloaded Successfully

This works as you'd expect across year boundaries. I.e. providing 2015 03 will give me the financial report for Dec 2014. (Thanks to the comment by @smacdonald for this info).

I hope this saves someone else some confusion! I was looking in StackOverflow for the answer and this question seemed most relevant...

Slightly related, I have open sourced a tool at https://github.com/eggheadgames/app_earnings that adds the currency data copy-pasted from the relevant ITunesConnect page and then processes these files into per-app earnings in a single currency, regardless of country of sale. Right now the tool handles Google Play, Amazon and Apple reports.

like image 194
mm2001 Avatar answered Sep 28 '22 09:09

mm2001


App Sales is an excellent tool for this. You can get it from GitHub: https://github.com/omz/AppSales-Mobile

like image 31
beev Avatar answered Sep 28 '22 09:09

beev


Expanding on mm2001's great answer, I've written a small script to sync the last 12 months of financial reports from iTunes Connect:

https://gist.github.com/futuretap/69c6289e791b10b43fba

like image 34
Ortwin Gentz Avatar answered Sep 28 '22 09:09

Ortwin Gentz