cedricziel/amznprofilesapiphp
最新稳定版本:v1.1.3
Composer 安装命令:
composer require cedricziel/amznprofilesapiphp
包简介
An API client for Amazon Advertising profiles
README 文档
README
PHP Client for the Amazon Advertising Profiles API
composer require cedricziel/amznprofilesapiphp
Docs
General
Instantiate a client, configure your secrets and continue to use:
use CedricZiel\AmznAdvertisingProfilesApi\AdvertisingProfilesClient; use CedricZiel\AmznAdvertisingProfilesApi\Endpoint; use CedricZiel\AmznAdvertisingProfilesApi\Header; // You need to obtain a token via the Amazon LwA workflow $token = '..'; $client = AdvertisingProfilesClient::createFor( Endpoint::Europe, $token, ); // execute the endpoint of choice, see below ... $client->listProfiles([], [Header::AmazonAdvertisingApiClientId->value => $clientId]);
listProfiles - get /v2/profiles
Gets a list of profiles.
Note that this operation does not return a response unless the current account has created at least one campaign using the advertising console.
use CedricZiel\AmznAdvertisingProfilesApi\AdvertisingProfilesClient; use CedricZiel\AmznAdvertisingProfilesApi\Endpoint; use CedricZiel\AmznAdvertisingProfilesApi\Header; // see above how to create a client $accessToken = '...'; $clientId = '...'; $client = AdvertisingProfilesClient::createFor(Endpoint::Europe, $accessToken); $client->listProfiles([], [Header::AmazonAdvertisingApiClientId->value => $clientId]);
updateProfiles - put /v2/profiles
Update the daily budget for one or more profiles.
Note that this operation is only used for Sellers using Sponsored Products. This operation is not enabled for vendor type accounts.
use CedricZiel\AmznAdvertisingProfilesApi\AdvertisingProfilesClient; use CedricZiel\AmznAdvertisingProfilesApi\Endpoint; use CedricZiel\AmznAdvertisingProfilesApi\Header; // see above how to create a client $accessToken = '...'; $clientId = '...'; $client = AdvertisingProfilesClient::createFor(Endpoint::Europe, $accessToken); $client->updateProfiles([], [Header::AmazonAdvertisingApiClientId->value => $clientId]);
getProfileById - get /v2/profiles/{profileId}
Gets a profile specified by identifier.
This operation does not return a response unless the current account has created at least one campaign using the advertising console.
use CedricZiel\AmznAdvertisingProfilesApi\AdvertisingProfilesClient; use CedricZiel\AmznAdvertisingProfilesApi\Endpoint; use CedricZiel\AmznAdvertisingProfilesApi\Header; // see above how to create a client $accessToken = '...'; $clientId = '...'; $client = AdvertisingProfilesClient::createFor(Endpoint::Europe, $accessToken); $client->getProfileById([], [Header::AmazonAdvertisingApiClientId->value => $clientId]);
License
Apache 2.0
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-04