Skip to content

Commit

Permalink
minor bug fix (#225)
Browse files Browse the repository at this point in the history
- parameter (line_item_ids) needs to be a list
  • Loading branch information
smaeda-ks committed Sep 6, 2019
1 parent ab79ffe commit 43074bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter_ads/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def targeting_criteria(self, id=None, **kwargs):
"""
self._validate_loaded()
if id is None:
return TargetingCriteria.all(self.account, self.id, **kwargs)
return TargetingCriteria.all(self.account, line_item_ids=[self.id], **kwargs)
else:
return TargetingCriteria.load(self.account, id, **kwargs)

Expand Down

0 comments on commit 43074bd

Please sign in to comment.