python-amazon-ad-api 2.4.2__py3-none-any.whl → 2.4.4__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 +45 -35
- ad_api/api/amc/__init__.py +4 -0
- ad_api/api/amc/administration.py +47 -0
- ad_api/api/amc/custom_models.py +924 -0
- ad_api/api/dsp/__init__.py +83 -0
- ad_api/version.py +1 -1
- {python_amazon_ad_api-2.4.2.dist-info → python_amazon_ad_api-2.4.4.dist-info}/METADATA +1 -1
- {python_amazon_ad_api-2.4.2.dist-info → python_amazon_ad_api-2.4.4.dist-info}/RECORD +46 -42
- /ad_api/api/{dsp_ad_creative_association.py → dsp/ad_creative_association.py} +0 -0
- /ad_api/api/{dsp_ad_group_and_campaign.py → dsp/ad_group_and_campaign.py} +0 -0
- /ad_api/api/{dsp_advertiser.py → dsp/advertiser.py} +0 -0
- /ad_api/api/{dsp_audience_create.py → dsp/audience_create.py} +0 -0
- /ad_api/api/{dsp_bid_adjustments.py → dsp/bid_adjustments.py} +0 -0
- /ad_api/api/{dsp_campaign_flights.py → dsp/campaign_flights.py} +0 -0
- /ad_api/api/{dsp_campaign_insights.py → dsp/campaign_insights.py} +0 -0
- /ad_api/api/{dsp_combined_audiences.py → dsp/combined_audiences.py} +0 -0
- /ad_api/api/{dsp_conversion_tracking_products.py → dsp/conversion_tracking_products.py} +0 -0
- /ad_api/api/{dsp_conversions.py → dsp/conversions.py} +0 -0
- /ad_api/api/{dsp_creatives.py → dsp/creatives.py} +0 -0
- /ad_api/api/{dsp_deal_permissions.py → dsp/deal_permissions.py} +0 -0
- /ad_api/api/{dsp_deal_proposals.py → dsp/deal_proposals.py} +0 -0
- /ad_api/api/{dsp_deals.py → dsp/deals.py} +0 -0
- /ad_api/api/{dsp_deals_management.py → dsp/deals_management.py} +0 -0
- /ad_api/api/{dsp_discovery_advertised_product_categories.py → dsp/discovery_advertised_product_categories.py} +0 -0
- /ad_api/api/{dsp_discovery_apps.py → dsp/discovery_apps.py} +0 -0
- /ad_api/api/{dsp_discovery_domain_lists.py → dsp/discovery_domain_lists.py} +0 -0
- /ad_api/api/{dsp_discovery_geo_locations.py → dsp/discovery_geo_locations.py} +0 -0
- /ad_api/api/{dsp_discovery_iab_content.py → dsp/discovery_iab_content.py} +0 -0
- /ad_api/api/{dsp_discovery_inventory_source_exchanges.py → dsp/discovery_inventory_source_exchanges.py} +0 -0
- /ad_api/api/{dsp_discovery_products.py → dsp/discovery_products.py} +0 -0
- /ad_api/api/{dsp_discovery_third_party_target_segments.py → dsp/discovery_third_party_target_segments.py} +0 -0
- /ad_api/api/{dsp_frequency_associations.py → dsp/frequency_associations.py} +0 -0
- /ad_api/api/{dsp_frequency_groups.py → dsp/frequency_groups.py} +0 -0
- /ad_api/api/{dsp_frequency_insights.py → dsp/frequency_insights.py} +0 -0
- /ad_api/api/{dsp_guidance.py → dsp/guidance.py} +0 -0
- /ad_api/api/{dsp_inherited_settings.py → dsp/inherited_settings.py} +0 -0
- /ad_api/api/{dsp_inventory_groups.py → dsp/inventory_groups.py} +0 -0
- /ad_api/api/{dsp_measurement.py → dsp/measurement.py} +0 -0
- /ad_api/api/{dsp_quick_actions.py → dsp/quick_actions.py} +0 -0
- /ad_api/api/{dsp_seats.py → dsp/seats.py} +0 -0
- /ad_api/api/{dsp_seats_management.py → dsp/seats_management.py} +0 -0
- /ad_api/api/{dsp_target_kpi_recommendations.py → dsp/target_kpi_recommendations.py} +0 -0
- /ad_api/api/{dsp_targeting.py → dsp/targeting.py} +0 -0
- {python_amazon_ad_api-2.4.2.dist-info → python_amazon_ad_api-2.4.4.dist-info}/WHEEL +0 -0
- {python_amazon_ad_api-2.4.2.dist-info → python_amazon_ad_api-2.4.4.dist-info}/licenses/LICENSE +0 -0
- {python_amazon_ad_api-2.4.2.dist-info → python_amazon_ad_api-2.4.4.dist-info}/top_level.txt +0 -0
ad_api/api/__init__.py
CHANGED
|
@@ -17,6 +17,8 @@ from . import sp as sponsored_products
|
|
|
17
17
|
from . import sb as sponsored_brands
|
|
18
18
|
from . import sd as sponsored_display
|
|
19
19
|
from . import st as sponsored_tv
|
|
20
|
+
from . import amc as amazon_marketing_cloud
|
|
21
|
+
from .amc.custom_models import CustomModels
|
|
20
22
|
from .attribution import Attribution
|
|
21
23
|
from .brand_metrics import BrandMetrics
|
|
22
24
|
from .brand_benchmarks import BrandBenchmarks
|
|
@@ -24,7 +26,6 @@ from .marketing_mix_modeling import MarketingMixModeling
|
|
|
24
26
|
from .advertising_test_account import AdvertisingTestAccount
|
|
25
27
|
from .advertising_invitations import AdvertisingInvitations
|
|
26
28
|
from .advertising_user_permissions import AdvertisingUserPermissions
|
|
27
|
-
from .dsp_advertiser import DspAdvertiser
|
|
28
29
|
from .reports import Reports
|
|
29
30
|
from .validation_configurations import ValidationConfigurations
|
|
30
31
|
from .recommendations import Recommendations
|
|
@@ -48,40 +49,44 @@ from .plan_management import MediaPlan
|
|
|
48
49
|
from .historic_reach import HistoricReach
|
|
49
50
|
from .record_management import RecordManagement
|
|
50
51
|
from .hashed_records import HashedRecords
|
|
51
|
-
from .
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
52
|
+
from .dsp import (
|
|
53
|
+
DspAdvertiser,
|
|
54
|
+
DspCampaignInsights,
|
|
55
|
+
DspCombinedAudiences,
|
|
56
|
+
DspFrequencyInsights,
|
|
57
|
+
DspFrequencyGroups,
|
|
58
|
+
DspGuidance,
|
|
59
|
+
DspFrequencyAssociations,
|
|
60
|
+
DspConversions,
|
|
61
|
+
DspMeasurement,
|
|
62
|
+
DspAdGroupAndCampaign,
|
|
63
|
+
DspInheritedSettings,
|
|
64
|
+
DspDiscoveryThirdPartyTargetSegments,
|
|
65
|
+
DspSeats,
|
|
66
|
+
DspSeatsManagement,
|
|
67
|
+
DspQuickActions,
|
|
68
|
+
DspAdCreativeAssociation,
|
|
69
|
+
DspAudienceCreate,
|
|
70
|
+
DspDealsManagement,
|
|
71
|
+
DspInventoryGroups,
|
|
72
|
+
DspDealAdvertiserPermissions,
|
|
73
|
+
DspDealProposals,
|
|
74
|
+
DspDeals,
|
|
75
|
+
DspCreatives,
|
|
76
|
+
DspDiscoveryGeoLocations,
|
|
77
|
+
DspDiscoveryInventorySourceExchanges,
|
|
78
|
+
DspDiscoveryIabContentCategories,
|
|
79
|
+
DspDiscoveryAdvertisedProductCategories,
|
|
80
|
+
DspDiscoveryDomainLists,
|
|
81
|
+
DspDiscoveryApps,
|
|
82
|
+
DspDiscoveryProducts,
|
|
83
|
+
DspBidAdjustments,
|
|
84
|
+
DspTargetKpiRecommendations,
|
|
85
|
+
DspCampaignFlights,
|
|
86
|
+
DspTargeting,
|
|
87
|
+
DspConversionTrackingProducts,
|
|
88
|
+
amazon_dsp,
|
|
89
|
+
)
|
|
85
90
|
|
|
86
91
|
__all__ = [
|
|
87
92
|
"v1",
|
|
@@ -92,6 +97,8 @@ __all__ = [
|
|
|
92
97
|
"sponsored_products",
|
|
93
98
|
"sponsored_brands",
|
|
94
99
|
"sponsored_display",
|
|
100
|
+
"amc",
|
|
101
|
+
"amazon_marketing_cloud",
|
|
95
102
|
"Profiles",
|
|
96
103
|
"ManagerAccounts",
|
|
97
104
|
"Billing",
|
|
@@ -126,6 +133,8 @@ __all__ = [
|
|
|
126
133
|
"PartnerOpportunities",
|
|
127
134
|
"PersonaBuilder",
|
|
128
135
|
"CampaignDiagnostics",
|
|
136
|
+
"CustomModels",
|
|
137
|
+
"Administration",
|
|
129
138
|
"PreModeration",
|
|
130
139
|
"Moderation",
|
|
131
140
|
"AdLibrary",
|
|
@@ -170,5 +179,6 @@ __all__ = [
|
|
|
170
179
|
"DspCampaignFlights",
|
|
171
180
|
"DspTargeting",
|
|
172
181
|
"DspConversionTrackingProducts",
|
|
182
|
+
"amazon_dsp",
|
|
173
183
|
"Account"
|
|
174
184
|
]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Administration(Client):
|
|
5
|
+
r"""
|
|
6
|
+
Administration(account='default', marketplace: Marketplaces = Marketplaces.EU, credentials=None, debug=False)
|
|
7
|
+
|
|
8
|
+
Amazon Marketing Cloud - Administration
|
|
9
|
+
|
|
10
|
+
Endpoints under ``/amc/...`` for managing AMC accounts and instances.
|
|
11
|
+
|
|
12
|
+
All endpoints require the ``Amazon-Advertising-API-ClientId`` header
|
|
13
|
+
(sent automatically from ``client_id`` in credentials).
|
|
14
|
+
|
|
15
|
+
No identity headers (Scope/AccountId/ManagerAccount) are required.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
@sp_endpoint('/amc/accounts', method='GET', headers=[])
|
|
19
|
+
def list_accounts(self, version: str = "1", **kwargs) -> ApiResponse:
|
|
20
|
+
r"""
|
|
21
|
+
list_accounts(next_token: str = None) -> ApiResponse
|
|
22
|
+
|
|
23
|
+
Get a list of AMC Accounts (operationId: AmcpLinkListAmcAccounts)
|
|
24
|
+
|
|
25
|
+
Query Parameters
|
|
26
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
27
|
+
|
|
28
|
+
Headers
|
|
29
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
30
|
+
|
|
31
|
+
Returns
|
|
32
|
+
ApiResponse
|
|
33
|
+
| **amcAccounts** (array)
|
|
34
|
+
| **amcAccountId** (string)
|
|
35
|
+
| **amcInstanceId** (string)
|
|
36
|
+
| **instanceName** (string)
|
|
37
|
+
| **region** (string)
|
|
38
|
+
| **status** (string)
|
|
39
|
+
| **createdTime** (string)
|
|
40
|
+
| **updatedTime** (string)
|
|
41
|
+
| **nextToken** (string)
|
|
42
|
+
|
|
43
|
+
"""
|
|
44
|
+
schema_version = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
45
|
+
headers = {'Accept': schema_version}
|
|
46
|
+
params = dict(kwargs)
|
|
47
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=headers)
|