Skip to main content
Google doesn’t let any service create an app for you, and its publishing API only works on an app after you’ve uploaded one file of it yourself. So this part has three short jobs: create the app, choose its package name, and upload the first Android file by hand. You do the upload once; Referly handles every file after that. This covers steps 2 to 4 of the Google Play part of the Publish step. Before you start
  • Your Google Play developer account is verified. See Create a Google Play developer account.
  • Your Custom App licence is active (building needs it).
  • Your app icon is generated (Design → App icon).
Play Console is behind Google’s sign-in, so the Play Console steps are written out. The screenshots show the Referly side.

Create the app

Referly shows the values Google asks for, each with a Copy button. Step 2 of the Google Play part in Referly with the App name, Default language, App or game and Free or paid values
  1. Free or paid must be Free, and Google never lets you change it later.
In Play Console:
  1. Open Play Console and select Create app.
  2. Paste the App name and choose the Default language Referly shows.
  3. App or game: App. Free or paid: Free.
  4. Tick both declarations (the Developer Program Policies and US export laws).
  5. Select Create app.

Save the package name in Referly

The package name is the app’s permanent ID on Google Play, like com.yourcompany.affiliates. Affiliates never see it. Step 3 of the Google Play part in Referly with the Package name field Keep Referly’s suggestion or type your own (lowercase words joined by dots), then select Save. Google ties the name to your app for good with the first upload, so Referly locks the field once an Android build exists.

Build the first Android file

Step 4 of the Google Play part in Referly with the Build the Android file button and the three Play Console steps
  1. Select Build the Android file. Referly builds your app as an .aab file, the format Google Play takes. It usually takes 15 to 40 minutes; you can leave the page.
When it’s ready, the step shows Android file ready and a Download .aab button. Select it to save the file.
If you already uploaded the service account key (next guide), that’s fine: until Google Play recognises the app, Referly keeps the file for you to download instead of trying to upload it.

Upload the first file by hand

  1. In Play Console, open your app → Test and release → Testing → Internal testing.
  2. Select Create new release.
  3. If Google asks how to sign the app, keep the default: Google-generated key (Play App Signing).
  4. Under App bundles, upload the .aab you downloaded.
  5. Select Next, then Save. The release can stay a draft: Google only needs to see the file once.
That’s it: the package name now belongs to your app, and Referly can work with it from here. Next: Connect Google Play.

If something goes wrong

  • The Build button is greyed out. Check the line under it: the licence isn’t active, or the package name isn’t saved.
  • The build fails. Select Log next to the build in Build & test to see why, then build again.
  • Google says the package name is already used. Another app on Google Play has it. Change the package name in Referly (possible until an Android build exists), build again and upload the new file.
Last modified on November 27, 2026