Add adAnalytics example using the finder method#72
Open
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
Open
Add adAnalytics example using the finder method#72ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
Conversation
…elopers#32) Addresses a common source of confusion around querying the adAnalytics endpoint. Shows three usage patterns: account-level analytics by campaign, daily analytics for specific campaigns, and creative-level breakdown. Demonstrates passing dateRange dicts, URN lists, and the fields parameter as native Python types. Closes linkedin-developers#32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/get_ad_analytics.pydemonstrating how to query theadAnalyticsendpoint usingrestli_client.finder()dateRange,accounts/campaigns, and other complex query params should be passed as native Python types (dicts, lists) — the client handles Rest.li encoding automaticallyfieldsparameter is a comma-delimited string, not a list (per Rest.li spec behavior discussed in Example of how to make a request to theadAnalyticsendpoint #32)Closes #32
Test plan
examples/finder()call signature matches theRestliClientAPI