Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pinterest/ads/ad_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def create(
client=cls._get_client(client)
)

def update_fields(self, **kwargs) -> bool:
def update_fields(self, client: PinterestSDKClient = None, **kwargs) -> bool:
"""
Update adgroup fields using any arguments

Expand All @@ -376,6 +376,7 @@ def update_fields(self, **kwargs) -> bool:
},
api=AdGroupsApi,
update_fn=AdGroupsApi.ad_groups_update,
client=client,
**kwargs
)

Expand Down
3 changes: 2 additions & 1 deletion pinterest/ads/ads.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def _map_function(obj):
**kwargs
)

def update_fields(self, **kwargs) -> bool:
def update_fields(self, client: PinterestSDKClient = None, **kwargs) -> bool:
"""
Update Ad fields suing any arguments

Expand All @@ -440,5 +440,6 @@ def update_fields(self, **kwargs) -> bool:
},
api=AdsApi,
update_fn=AdsApi.ads_update,
client=client,
**kwargs
)
3 changes: 2 additions & 1 deletion pinterest/ads/audiences.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _map_function(obj):
**kwargs
)

def update_fields(self, **kwargs):
def update_fields(self, client: PinterestSDKClient = None, **kwargs):
"""
Update audience fields

Expand All @@ -271,5 +271,6 @@ def update_fields(self, **kwargs):
},
api=AudiencesApi,
update_fn=AudiencesApi.audiences_update,
client=client,
**kwargs
)
3 changes: 2 additions & 1 deletion pinterest/ads/campaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def archive(self) -> bool:
"""
return self._change_status('ARCHIVED')

def update_fields(self, **kwargs) -> bool:
def update_fields(self, client: PinterestSDKClient = None, **kwargs) -> bool:
"""
Update the campaign fields using any attributes.

Expand All @@ -508,6 +508,7 @@ def update_fields(self, **kwargs) -> bool:
},
api=CampaignsApi,
update_fn=CampaignsApi.campaigns_update,
client=client,
**kwargs
)

Expand Down
Loading