# Console Configuration

This is a simplified overview of our more detailed [console configuration](https://purchasely.gitbook.io/purchasely/3.4/quick-start-1/console-configuration/installation#creating-a-new-app)

### Application

<figure><img src="https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2F9gysGMqH9JFTRzSTtkRN%2Fimage.png?alt=media&#x26;token=f81e5dd7-c411-42a3-a03c-2dfc38c66c6b" alt=""><figcaption><p>Create a New Application</p></figcaption></figure>

The mandatory parameters are :

* **Name**: the name of the application as it will be displayed in the Purchasely Console
* **The default language**:  this will define which language shall be used when the language on a user device is not supported by the application. ⚠️ It can't be changed later

<figure><img src="https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FmKKTwZ6uoWPKTq9AozmK%2Fimage.png?alt=media&#x26;token=00b8d770-e7e6-479e-87fd-567038ac8681" alt=""><figcaption><p>Store Configuration</p></figcaption></figure>

The next step is to plug your applications with the different stores you want to use.

### Apple App Store

By clicking on the Apple App Store tab in your App Settings you can do the 3 required steps for Apple configuration

1. App bundle id\ <img src="https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FevSBYz36wrcUdJHHG9cE%2FSCR-20220617-mwm.png?alt=media&#x26;token=ae999b0b-2709-44b7-8d2f-da640a717934" alt="" data-size="original">
2. Shared App Secret\
   ![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2F5Zi3EDc9ST1obL3VU0wo%2FSCR-20220617-mwy.png?alt=media\&token=1d871370-8800-44e5-9d5a-2a8685bace3c)![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FzW47rkhPedTJ0rwRD8oF%2FSCR-20220617-myi.png?alt=media\&token=0e0d45a8-a7ba-4ab6-a5a5-4c534ddadb56)
3. Server to Server notifications\
   ![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FdFL6Q4fkmNlPFny4EmRc%2FSCR-20220617-mzk.png?alt=media\&token=d8ad84ab-e487-4efb-b3d9-35a9fbbce01f)

### Google Play Console

By clicking on the Play Store tab in your App Settings you can do the 3 required steps for Google configuration

#### App Bundle Id ![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FsbnbKkIZYLPzpQPo0Aea%2FSCR-20220617-n4t.png?alt=media\&token=85f683a6-4dad-4726-a2f3-84499fafd5d6)

#### Access Key

![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FiiWXlK7ntGmARWAy1J5d%2FSCR-20220617-n68.png?alt=media\&token=9886e3cc-4d98-4a71-a68c-8f0ddc147016)

Create a dedicated Service Account under [Google Cloud Platform Console](https://console.cloud.google.com/) [https://console.cloud.google.com](https://console.cloud.google.com/) \
*Google Cloud Platform > IAM & admin > Service Account > Create a new Service Account*

* Name your account `Purchasely` to be able to easily identify it later
* Give it the ID `purchasely`
* On the following screen, set the role to "Owner"
* On the following screen, create a key by clicking on the `+ Create a key` button
* Choose JSON format
* Fill the content of the field "Access key" with this json file

Grant the access to the Service Account under the [Google Play Console](https://play.google.com/console/u/0/developers/api-access)\
\&#xNAN;*Google Play Console> API Access > \[PURCHASELY SERVICE ACCOUNT] > Grant authorization*

**Complete those 3 steps**

1. Set "no expiration date"
2. **Tab: App permissions -** Select the application corresponding to the app bundle id\
   ![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FAPJAsLZSS0JcjM9uGues%2FSCR-20220617-n7r.png?alt=media\&token=7e4e872e-4c35-46b3-95dc-72b7fc07de04)
3. **Tab: Account permissions -** Ensure the following permissions are selected :
   * [x] View app information and download bulk reports
   * [x] View financial data, orders, and cancellation survey responses
   * [x] Manage orders and subscriptions\
     ![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2Fz7CJhna9rfG7bwxb6hB3%2FSCR-20220617-n8a.png?alt=media\&token=936cbce1-872a-4159-b86f-606121d2f829)<br>

{% hint style="warning" %}
Once you have completed all those steps, it can **take up from 30 minutes to 48 hours** to Google to activate those new permissions, specifically the 2nd step **App Permission** for the service account
{% endhint %}

#### Server to Server notifications

We connect to Google Cloud Pub/Sub automatically for you by using your service account access.\
All you need to do is click on "Connect to Google" and follow the steps

![](https://1658765766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2FEUpNA3T0wR6ufAkYBDTZ%2FSCR-20220617-nee.png?alt=media\&token=7c86522d-c2e3-4b5f-a398-7df567836305)
