Authorization - Amazon Marketing Cloud Insights on AWS

Authorization

To make requests, you need to first authorize your client credentials, generate a refresh token, and store the token in the AWS Secret Manager. This solution allows you to optionally store multiple OAuth credentials within your secret, and assign a user-defined key referred to as AuthId to each set of credentials.

Authorization to Amazon Ads API

This solution creates a notebook to facilitate the Amazon Ads Authorization process.

  1. Retrieve Client ID and Secret ID

  2. Follow these steps to open the SageMaker notebook instance.

  3. Navigate to amazon_ads folder in the SageMaker Notebook and open the Amzon_Ads_Auth.ipynb file.

  4. Follow the instructions in the notebook to complete the authorization process.

Authorization to Selling Partner API

  1. Follow the self authorization steps to retrieve a refresh token.

  2. Open the Selling Partner secret in AWS Secrets Manager. You can find a link to this secret in your Cloudformation stack Output tab under the key sellingpartnerSecretsE97D932C.

  3. Store your refresh token, client ID, and client secret in the Secrets Manager. Follow these instructionsto update this value.

    If you only have one set of OAuth credentials, you can update the secret values under Key/value tab.

    If you want to store multiple OAuth credentials, update the secret value under Plaintext tab using a JSON text string. Refer to Managing Multiple Authenticated Credentials for more details.