competitivetracker.search
- class competitivetracker.search.Search(base_uri, api_key, transport_class=<class 'competitivetracker.base.RequestsTransport'>)
- search(**kwargs)
Search for campaigns with many different criteria. Detected sending or forwarding IPs are accessible via the sendingIps embed option.
- Parameters
qd (str) –
(Required) A date range query parameter.
Accepts:
since:YYYYMMDD,between:YYYYMMDDhhmmss,YYYYMMDDhhmmss, anddaysBack:N.Examples:
since:20190601,between:20191001000000,20191002060000,daysBack:30subject (str) – Subject search criteria
body (str) – Body search criteriaSubject search criteria
campaignLengthFilter (str) –
Length filter in days for the campaign
Examples:
>,2,<,5,=,1sendingDomain – List of strings. Filter search to specific sending domains (multiple allowed)
excludeSendingDomain – List of strings. Filter out specific sending domains (multiple allowed)
brandId – List of int. Filter search to specific brands (multiple allowed)
excludedBrandId – List of int. Filter out specific brands (multiple allowed)
companyId – List of int. Filter search to specific companies (multiple allowed)
excludedCompanyId – List of int. Filter out specific companies (multiple allowed)
industryId – List of int. Filter search to specific industries (multiple allowed)
sentFrom (str) – Campaigns with a matching sent from address
fromAddress – List of strings. Campaigns with certain from addresses (multiple allowed)
headerKey (str) – Campaigns that used a specific header key
headerValue (str) – Campaigns that used a specific header value
receivedUsingMta (str) – Campaigns were received using a matched MTA
mobileReady (bool) – Campaigns with/without mobile ready format
hasCreative (bool) – Campaigns with/without creatives
onlyCommercial (bool) –
Truefor commercial campaigns,Falsefor daily low-volume rollups, and leave unset (null) for bothemojiPresent (bool) – Campaigns with/without emojis in the subject
readPercentage (str) –
Read percentage filter
Examples:
>,20,<,5,=,2readDeletedPercentage (str) –
Read+Deleted percentage filter
Examples:
>,20,<,5,=,2deletedPercentage (str) –
Deleted percentage filter
Examples:
>,20,<,5,=,2inboxPercentage (str) –
Inbox percentage filter
Examples:
>,20,<,5,=,2spamPercentage (str) –
Spam percentage filter
Examples:
>,20,<,5,=,2projectedVolumeFilter (str) –
Projected Total Volume filter
Examples:
>,2000000,<,50000,=,324541secondaryProjectedVolumeFilter (str) –
Secondary Projected Total Volume filter
Examples:
>,2000000,<,50000,=,324541droveTrafficToDomain – List of strings. Filter search to campaigns that drive traffic to certain domains (multiple allowed)
sendFromIp – List of strings. Filter search to campaigns that were sent from certain ips (multiple allowed)
espId (int) – Filter search to a specific ESP
espStartIp (str) – The start IP of the sending ESP
espEndIp (str) – The end IP of the sending ESP
espRedirectDomain (str) – The redirect domain of the sending ESP
espRedirectString (str) – The match the redirect string of the sending ESP
campaignTargetCountry – List of strings. Filter search to campaigns with a specific target country code (multiple allowed)
excludedCampaignTargetCountry – List of strings. Filter out campaigns with a specific target country code (multiple allowed)
page (int) – The page to query for in pagination
per_page (int) – The amount of records per page you wish to query for (max 100)
order (str) –
The property to sort by (‘property’ for descending, ‘-property’ for ascending)
Accepts:
firstSeen,-firstSeen,lastSeen,-lastSeen,inbox,-inbox,spam,-spamembed (str) –
The objects within the return model you wish to embed in the form of ‘customer, customer.name, etc’
Accepts:
sendingIps,rawEmail,ispPlacements,links,headers(headers is only available for ESP-owned accounts).
- Returns
A
listof objectdictcontaining campaign details.