get_insights
- Insights.get_insights(audienceId: str, version: int = 2, **kwargs) ApiResponse
Returns the audiences that overlap with the one given, ranked by affinity.
Keyword Args
version(int): theAcceptversion. Only 2 answers; 1 was retired and replies415naming v2 as the sole supported type. Defaults to 2. [optional]
Path
audienceId(string): required. The audience to measure against.
Query
adType(string): required in practice,SDorDSP. When it is left out the service assumesDSPand answers400 Missing advertiserId parameter for DSP request, which names the wrong parameter. Send it explicitly.advertiserId(string): required forDSP, ignored forSD.audienceCategory(string): keep only audiences of that category, such as"In-market". The contract calls it an array; a plain string is what the service accepts and applies.maxResults(integer): how many overlaps to return. Default 30. Works, and the count follows it.nextToken(string): token from a previous answer. Subsequent calls must repeat the same parameters.
Three parameters are accepted and then ignored:
minimumAudienceSize,maximumAudienceSizeandminimumOverlapAffinity. The call answers200with the same count as without them, so a filter that was never applied is indistinguishable from one that matched everything. Check the count, not the status.- Returns
ApiResponse with
requestedAudienceMetadata,overlappingAudiences,marketplaceandnextToken. Each overlap carriesaudienceMetadataandaffinity, a number where higher means a closer match.