tiktok / tiktok-business-api-sdk

An SDK built to facilitate application development to integrate with TikTok Business API.
https://ads.tiktok.com/marketing_api/docs?id=1764231376750658&rid=542rk6sm9jl
MIT License
69 stars 26 forks source link

Is there an enpoint to get the advertiser_ids user has access to? #9

Closed psociety closed 8 months ago

psociety commented 11 months ago

Once you already got the access_token, how can you get an updated advertiser_ids list? (maybe the user has been added or removed from some of them).

All i see is the business_ids https://ads.tiktok.com/marketing_api/docs?id=1737115687501826 but i don't see any endpoint to get the same list you get when retrieving the access_token at https://ads.tiktok.com/marketing_api/docs?id=1739965703387137

Would it be https://ads.tiktok.com/marketing_api/docs?id=1738455508553729 ?

jasonchentt commented 8 months ago

yes, oauth2/advertiser/get/ endpoint(https://business-api.tiktok.com/portal/docs?id=1738455508553729) will return you a list of advertisers that have granted you the permission to manage