python-amazon-ad-api 2.0.4__py3-none-any.whl → 2.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ad_api/api/__init__.py +2 -0
- ad_api/api/dsp_advertiser.py +43 -0
- ad_api/version.py +1 -1
- {python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/METADATA +10 -1
- {python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/RECORD +8 -7
- {python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/WHEEL +0 -0
- {python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/licenses/LICENSE +0 -0
- {python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/top_level.txt +0 -0
ad_api/api/__init__.py
CHANGED
|
@@ -21,6 +21,7 @@ from .brand_metrics import BrandMetrics
|
|
|
21
21
|
from .advertising_test_account import AdvertisingTestAccount
|
|
22
22
|
from .advertising_invitations import AdvertisingInvitations
|
|
23
23
|
from .advertising_user_permissions import AdvertisingUserPermissions
|
|
24
|
+
from .dsp_advertiser import DspAdvertiser
|
|
24
25
|
from .reports import Reports
|
|
25
26
|
from .validation_configurations import ValidationConfigurations
|
|
26
27
|
from .recommendations import Recommendations
|
|
@@ -55,6 +56,7 @@ __all__ = [
|
|
|
55
56
|
"AdvertisingTestAccount",
|
|
56
57
|
"AdvertisingInvitations",
|
|
57
58
|
"AdvertisingUserPermissions",
|
|
59
|
+
"DspAdvertiser",
|
|
58
60
|
"Reports",
|
|
59
61
|
"ValidationConfigurations",
|
|
60
62
|
"Recommendations",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DspAdvertiser(Client):
|
|
5
|
+
@sp_endpoint('/dsp/advertisers', method='GET')
|
|
6
|
+
def list_advertisers(self, **kwargs) -> ApiResponse:
|
|
7
|
+
r"""
|
|
8
|
+
list_advertisers(**kwargs) -> ApiResponse
|
|
9
|
+
|
|
10
|
+
Retrieve the DSP advertisers the profile can see.
|
|
11
|
+
|
|
12
|
+
query **startIndex**:*int* | Optional. Index of the first result.
|
|
13
|
+
query **count**:*int* | Optional. Number of results to return.
|
|
14
|
+
query **advertiserIdFilter**:*string* | Optional. Filter by advertiser id.
|
|
15
|
+
|
|
16
|
+
The profile has to be a DSP one: accountInfo.type must be agency and
|
|
17
|
+
subType must not be AMAZON_ATTRIBUTION.
|
|
18
|
+
|
|
19
|
+
Returns:
|
|
20
|
+
|
|
21
|
+
ApiResponse
|
|
22
|
+
|
|
23
|
+
"""
|
|
24
|
+
return self._request(kwargs.pop('path'), params=kwargs)
|
|
25
|
+
|
|
26
|
+
@sp_endpoint('/dsp/advertisers/{}', method='GET')
|
|
27
|
+
def get_advertiser(self, advertiserId: str, **kwargs) -> ApiResponse:
|
|
28
|
+
r"""
|
|
29
|
+
get_advertiser(advertiserId: str, **kwargs) -> ApiResponse
|
|
30
|
+
|
|
31
|
+
Retrieve one DSP advertiser by id.
|
|
32
|
+
|
|
33
|
+
path **advertiserId**:*string* | Required. The advertiser id.
|
|
34
|
+
|
|
35
|
+
The profile has to be a DSP one: accountInfo.type must be agency and
|
|
36
|
+
subType must not be AMAZON_ATTRIBUTION.
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
|
|
40
|
+
ApiResponse
|
|
41
|
+
|
|
42
|
+
"""
|
|
43
|
+
return self._request(fill_query_params(kwargs.pop('path'), advertiserId), params=kwargs)
|
ad_api/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.0.
|
|
1
|
+
__version__ = "2.0.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-amazon-ad-api
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: Python wrapper for the Amazon Advertising API
|
|
5
5
|
Home-page: https://github.com/denisneuf/python-amazon-ad-api
|
|
6
6
|
Author: Daniel Alvaro
|
|
@@ -326,6 +326,15 @@ Billing(account=store).list_invoices()
|
|
|
326
326
|
| [Query user roles](https://python-amazon-ad-api.readthedocs.io/en/latest/api/advertising_user_permissions.html#ad_api.api.AdvertisingUserPermissions.AdvertisingUserPermissions.query_user_roles) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AdvertisingUserPermissionsManagement_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/user-permissions) |
|
|
327
327
|
| [List users](https://python-amazon-ad-api.readthedocs.io/en/latest/api/advertising_user_permissions.html#ad_api.api.AdvertisingUserPermissions.AdvertisingUserPermissions.list_users) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AdvertisingUserPermissionsManagement_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/user-permissions) |
|
|
328
328
|
|
|
329
|
+
### [DSP Advertiser Accounts](https://python-amazon-ad-api.readthedocs.io/en/latest/api/dsp_advertiser.html)
|
|
330
|
+
|
|
331
|
+
> Both routes require a DSP profile: `accountInfo.type` must be `agency` and `subType` must not be `AMAZON_ATTRIBUTION`. They have not been exercised against the API from this package; a seller profile cannot reach them.
|
|
332
|
+
|
|
333
|
+
| Operation | Vendor contract | Vendor docs |
|
|
334
|
+
|---|---|---|
|
|
335
|
+
| [List advertisers](https://python-amazon-ad-api.readthedocs.io/en/latest/api/dsp_advertiser.html#ad_api.api.DspAdvertiser.DspAdvertiser.list_advertisers) | [contract](https://d3a0d0y2hgofx6.cloudfront.net/openapi/en-us/dsp/3-0/advertiser.yaml) | [docs](https://advertising.amazon.com/API/docs/en-us/dsp-advertiser) |
|
|
336
|
+
| [Get advertiser](https://python-amazon-ad-api.readthedocs.io/en/latest/api/dsp_advertiser.html#ad_api.api.DspAdvertiser.DspAdvertiser.get_advertiser) | [contract](https://d3a0d0y2hgofx6.cloudfront.net/openapi/en-us/dsp/3-0/advertiser.yaml) | [docs](https://advertising.amazon.com/API/docs/en-us/dsp-advertiser) |
|
|
337
|
+
|
|
329
338
|
### [Amazon Ads API v1 (new, unified)](https://python-amazon-ad-api.readthedocs.io/en/latest/v1.html)
|
|
330
339
|
|
|
331
340
|
> The v1 API lives under `/adsApi/v1/` and is **not** split by product: every call targets the same resource and the product is selected in the request body with `adProductFilter`. It supersedes the per-product v3 endpoints.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
ad_api/version.py,sha256=
|
|
3
|
-
ad_api/api/__init__.py,sha256=
|
|
2
|
+
ad_api/version.py,sha256=xEb7Z4b8xalXXExBg42XPAhbJKniHzcsEPjp-6S3ppg,22
|
|
3
|
+
ad_api/api/__init__.py,sha256=BnitfqbZuyQjcYph8wnFmNparyNtNiDzdpMslhLHunc,1841
|
|
4
4
|
ad_api/api/account.py,sha256=X6VPoPsEfGwuABUYVWJATiUpgHSCAz0BreQOHCze9To,4613
|
|
5
5
|
ad_api/api/account_budgets.py,sha256=jFce5eLWAFK3ydjnYR7_Sv7B0-gHTG5bMTx_TcHyy1A,2319
|
|
6
6
|
ad_api/api/advertising_invitations.py,sha256=TRwULEFi_HVyfK35ABkuZbFOHAdl4tNnGWanxrvX32A,4629
|
|
@@ -11,6 +11,7 @@ ad_api/api/audiences.py,sha256=TQPt4avswFdCodNfQGDGxcJ2mY2LP2BfYvjxP6oJ0qY,3491
|
|
|
11
11
|
ad_api/api/billing.py,sha256=ZSRaEyepCRk0H9SK65A9VeR1kz0F0BDre6Nxxa497EE,25330
|
|
12
12
|
ad_api/api/brand_metrics.py,sha256=DVg9qu_-sALxaQhQjRG6Isi_5SYxA5nmTg99jTe5Tls,9237
|
|
13
13
|
ad_api/api/creative_assets.py,sha256=u0bCnioUFpGOQO5Z_MO0ErSLcAgSZB5GWM5wm2oW6L0,9687
|
|
14
|
+
ad_api/api/dsp_advertiser.py,sha256=ztSr0s15Z9scQNKElWxRujexsENn84MT-ihNhijLi_M,1427
|
|
14
15
|
ad_api/api/eligibility.py,sha256=3hKloUciUZ4CplJkaHvrteUEuhv37-sVrQUYnfIMuZU,3824
|
|
15
16
|
ad_api/api/exports.py,sha256=keAy7JJJgfOBh6DHZCVzpfSV9Fb2vm4eluzB0JGyjp8,7758
|
|
16
17
|
ad_api/api/history.py,sha256=tB4XawmQNxDMolaubDUjuIHtrYXRFuhOr4WCB8OJ1t8,2568
|
|
@@ -131,8 +132,8 @@ ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4
|
|
|
131
132
|
ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
|
|
132
133
|
ad_api/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
133
134
|
ad_api/shared/base_client.py,sha256=zOL_LTh-58URWf3ZDlrwmqXXbd6PX66QF5hrr2p83yY,356
|
|
134
|
-
python_amazon_ad_api-2.0.
|
|
135
|
-
python_amazon_ad_api-2.0.
|
|
136
|
-
python_amazon_ad_api-2.0.
|
|
137
|
-
python_amazon_ad_api-2.0.
|
|
138
|
-
python_amazon_ad_api-2.0.
|
|
135
|
+
python_amazon_ad_api-2.0.5.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
|
|
136
|
+
python_amazon_ad_api-2.0.5.dist-info/METADATA,sha256=EJVZVL7706dIc4bWNa9obFi8smj7TuK1hTs3pQ4L0HA,50098
|
|
137
|
+
python_amazon_ad_api-2.0.5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
138
|
+
python_amazon_ad_api-2.0.5.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
|
|
139
|
+
python_amazon_ad_api-2.0.5.dist-info/RECORD,,
|
|
File without changes
|
{python_amazon_ad_api-2.0.4.dist-info → python_amazon_ad_api-2.0.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|