PHPackages                             lai3221/amzn\_adv\_api\_php - 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. [API Development](/categories/api)
4. /
5. lai3221/amzn\_adv\_api\_php

ActiveLibrary[API Development](/categories/api)

lai3221/amzn\_adv\_api\_php
===========================

Amazon Advertising API Client Library V3.0

3.0.7(1y ago)141.4k↓33.3%2[1 issues](https://github.com/lai3221/amz_adv_api_php/issues)Apache-2.0PHPPHP &gt;=7.3

Since Nov 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/lai3221/amz_adv_api_php)[ Packagist](https://packagist.org/packages/lai3221/amzn_adv_api_php)[ Docs](https://advertising.amazon.com/)[ RSS](/packages/lai3221-amzn-adv-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (11)Used By (0)

 [ ![logo](https://raw.githubusercontent.com/lai3221/.github/main/amz_adv_logo.png?raw=true) ](https://packagist.org/packages/lai3221/amzn_adv_api_php)

 [![Total downloads](https://camo.githubusercontent.com/6f12d858e350cac0b2f3c299857bbef5fee411594a977c8e83c93140badc503f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6169333232312f616d7a6e5f6164765f6170695f7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lai3221/amzn_adv_api_php) [![Latest stable version](https://camo.githubusercontent.com/32ab0917449ddd1b24117f7b8402bbf45ba5f84be84d4f1b8da3612b23bdb67b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6169333232312f616d7a6e5f6164765f6170695f7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lai3221/amzn_adv_api_php) [![License](https://camo.githubusercontent.com/fbe30ca2a2eb9aa607c2a9f5b5678a9c824ca61811874658c79fdec20650e8fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6169333232312f616d7a6e5f6164765f6170695f7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lai3221/amzn_adv_api_php)

Synopsis
--------

[](#synopsis)

Official Amazon Advertising API PHP client library.

Version 3.0 OAS 3.0.1

Resources included: Sponsored Products V3 (Reporting V3)
Sponsored Brands V4 (Reporting V2)
Sponsored Display (Reporting V2)
Accounts
Reporting
Stores
Assets
Audiences discovery (new)
Change history V1 (new)
Posts V2 (new)
Exports (new)
Products (new)

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

[](#requirements)

PHP &gt;= 7.3
cURL &gt;= 7.18

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

[](#documentation)

[API Reference](https://advertising.amazon.com/API/docs/en-us/reference/api-overview)
[Getting Started](https://advertising.amazon.com/API/docs/en-us/guides/get-started/overview)

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

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

[](#quick-start)

#### Instantiate the client

[](#instantiate-the-client)

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

```
