Skip to content

Commit

Permalink
fix account users stream
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Oct 24, 2024
1 parent 41fd252 commit 4c67396
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tap_linkedin_ads/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ def get_url_params(
"""
return {
"q": "accounts",
"accounts": f"urn:li:sponsoredAccount:{context['account_id']}",
**super().get_url_params(context, next_page_token),
}

def get_unescaped_params(self, context: Context | None) -> dict:
return {
"accounts": f"urn:li:sponsoredAccount:{context['account_id']}",
}


class CampaignsStream(LinkedInAdsStream):
"""https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-campaigns#search-for-campaigns."""
Expand Down

0 comments on commit 4c67396

Please sign in to comment.