PHPackages                             imikemiller/amazon-advertising-api-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. imikemiller/amazon-advertising-api-php-sdk

ActiveLibrary

imikemiller/amazon-advertising-api-php-sdk
==========================================

Amazon Advertising API Client Library

1.2(8y ago)4122Apache OSL-2PHPPHP &gt;=5.3.0

Since Aug 28Pushed 8y agoCompare

[ Source](https://github.com/imikemiller/amazon-advertising-api-php-sdk)[ Packagist](https://packagist.org/packages/imikemiller/amazon-advertising-api-php-sdk)[ Docs](https://advertising.amazon.com/)[ RSS](/packages/imikemiller-amazon-advertising-api-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Synopsis
--------

[](#synopsis)

Official Amazon Advertising API PHP client library.

Requirements
------------

[](#requirements)

PHP &gt;= 5.3.0
cURL &gt;= 7.18

Documentation
-------------

[](#documentation)

[API Reference](https://images-na.ssl-images-amazon.com/images/G/01/AdProductsWebsite/downloads/Amazon_Advertising_API_Reference.pdf)
[Access Request](https://advertising.amazon.com/API)
[Getting Started](https://images-na.ssl-images-amazon.com/images/G/01/AdProductsWebsite/downloads/Amazon_Advertising_API_Getting_Started_Guide.pdf)

Tutorials
---------

[](#tutorials)

[Register Sandbox Profile](https://git.io/vPKMl) - This tutorial will show you how to register a profile in sandbox using CURL.
[Generate and download a report using CURL](https://git.io/vPKPW) - You will need to complete registering a profile in sandbox prior to doing this tutorial.

Sandbox self-service
--------------------

[](#sandbox-self-service)

If you would like to test the API in sandbox you will need to register a profile for the region in which you would like to test. The `registerProfile` API call can be made to do this. Make sure you instantiate the client in `sandbox` mode before making this call or it will fail.

The following country codes are available for testing.

> US, CA, UK, DE, FR, ES, IT, IN, CN, JP

```
$client->registerProfile(array("countryCode" => "IT"));
```

>

```
{
  "registerProfileId": "5cf1aca5-4ab8-4489-8c33-013d1f85c586JP",
  "status": "IN_PROGRESS",
  "statusDetails": "Registration workflow has been started"
}

```

Quick Start
-----------

[](#quick-start)

#### Instantiate the client

[](#instantiate-the-client)

> You can pass in `accessToken` if you do not have a refresh token.

```
