Skip to content

Commit 4fe1c1a

Browse files
committed
v0.6.4
1 parent f071769 commit 4fe1c1a

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

ad_api/api/portfolios_v3.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class PortfoliosV3(Client):
88
def list_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
99
r"""
1010
11-
list_portfolios(**kwargs) -> ApiResponse
11+
list_portfolios(body: (str, dict)) -> ApiResponse
1212
1313
"""
1414

@@ -26,7 +26,7 @@ def list_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> A
2626
def create_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
2727
r"""
2828
29-
create_portfolios(body: (list, str, dict)) -> ApiResponse
29+
create_portfolios(body: (str, dict)) -> ApiResponse
3030
3131
3232
"""
@@ -42,7 +42,7 @@ def create_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) ->
4242
def edit_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
4343
r"""
4444
45-
edit_portfolios(body: (list, str, dict)) -> ApiResponse
45+
edit_portfolios(body: (str, dict)) -> ApiResponse
4646
4747
4848
"""
@@ -59,13 +59,10 @@ def edit_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> A
5959
def get_budget_usage_for_portfolios(self, version: int = 1, **kwargs) -> ApiResponse:
6060
r"""
6161
62-
get_budget_usage_for_portfolios(body: (list, str, dict)) -> ApiResponse
62+
get_budget_usage_for_portfolios(body: (str, dict)) -> ApiResponse
6363
6464
6565
"""
66-
67-
6866
schema_version = 'application/vnd.portfoliobudgetusage.v' + str(version) + '+json'
6967
headers = {"Accept": schema_version, "Content-Type": schema_version}
70-
7168
return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Common Resources
1515
api/localization
1616
api/audiences
1717
api/portfolios
18+
api/portfoliosV3
1819
api/insights
1920
api/reports
2021
api/validation_configurations

docs/api/portfoliosV3.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
PortfoliosV3
2+
============
3+
`https://dtrnk0o2zy01c.cloudfront.net/openapi/en-us/dest/Portfolios_prod_3p.json`_
4+
5+
.. _https://dtrnk0o2zy01c.cloudfront.net/openapi/en-us/dest/Portfolios_prod_3p.json: https://dtrnk0o2zy01c.cloudfront.net/openapi/en-us/dest/Portfolios_prod_3p.json
6+
7+
Manage portfolios that group together campaigns.
8+
9+
.. autoclass:: ad_api.api.PortfoliosV3
10+
11+
.. note::
12+
13+
This API **Portfolios** can be used as sandbox environment for testing
14+
15+
.. autofunction:: ad_api.api.Portfolios.list_portfolios
16+
17+
.. autofunction:: ad_api.api.Portfolios.create_portfolios
18+
19+
.. autofunction:: ad_api.api.Portfolios.edit_portfolios
20+
21+
.. autofunction:: ad_api.api.Portfolios.get_budget_usage_for_portfolios

0 commit comments

Comments
 (0)