Skip to content

Commit

Permalink
fix - Advertiser ID on accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
GtheSheep authored Mar 18, 2023
1 parent a497a95 commit 591a910
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tap_tiktok/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
class AdAccountsStream(TikTokStream):
name = "ad_accounts"
path = "/advertiser/info/"
primary_keys = ["id"]
primary_keys = ["advertiser_id"]
records_jsonpath = "$.data.list[*]"
replication_key = None
schema = th.PropertiesList(
th.Property("id", th.IntegerType),
th.Property("advertiser_id", th.StringType),
th.Property("name", th.StringType),
th.Property("company", th.StringType),
th.Property("contacter", th.StringType),
Expand Down Expand Up @@ -49,6 +49,7 @@ class AdAccountsStream(TikTokStream):
th.Property("license_city", th.StringType),
th.Property("description", th.StringType),
th.Property("license_no", th.StringType),
th.Property("owner_bc_id", th.StringType),
).to_dict()

def get_url_params(
Expand Down

0 comments on commit 591a910

Please sign in to comment.