Common Account Data¶
Client Methods¶
-
class
performline.products.common.api.CommonClientMethods[source]¶ Methods for retrieving data common to all products.
-
brands(id=None, limit=None, offset=None, create_date=None)[source]¶ Retrieve one or more brands associated with an account.
Parameters: id (int, optional) – If specified, retrieve a single brand by the given ID. Otherwise, return all brands. Returns: An instance of Brandifidis not None representing the brand with that ID. Otherwise, retrieve a list ofBrandinstances of all brands associated with the account.Raises: See request()
-
campaigns(id=None, limit=None, offset=None, brand=None)[source]¶ Retrieve one or more campaigns associated with an account.
Parameters: id (int, optional) – If specified, retrieve a single campaign by the given ID. Otherwise, return all campaigns. Returns: An instance of Campaignifidis not None representing the campaign with that ID. Otherwise, retrieve a list ofCampaigninstances of all campaigns associated with the account.Raises: See request()
-
items(id=None, limit=None, offset=None, brand=None, campaign=None)[source]¶ Retrieve one or more scorable items associated with an account.
Parameters: id (int, optional) – If specified, retrieve a single item by the given ID. Otherwise, return all items. Returns: An instance of Itemifidis not None representing the item with that ID. Otherwise, retrieve a list ofIteminstances of all items associated with the account.Raises: See request()
-
remediation_statuses()[source]¶ Retrieve all available remediation statuses available in the Performline platform. :returns: An instance of
RemediationStatuses,which has a property returning a list of strings representing the availareturn RemediationStatus.get()
-
rules(id=None, limit=None, offset=None)[source]¶ Retrieve one or more rules associated with an account.
Parameters: id (int, optional) – If specified, retrieve a single rule by the given ID. Otherwise, return all rules. Returns: An instance of Ruleifidis not None representing the rule with that ID. Otherwise, retrieve a list ofRuleinstances of all rules associated with the account.Raises: See request()
-
trafficsources(id=None, limit=None, offset=None)[source]¶ Retrieve one or more traffic sources associated with an account.
Parameters: id (int, optional) – If specified, retrieve a single traffic source by the given ID. Otherwise, return all traffic sources. Returns: An instance of TrafficSourceifidis not None representing the traffic source with that ID. Otherwise, retrieve a list ofTrafficSourceinstances of all traffic sources associated with the account.Raises: See request()
-
Data Access Models¶
Models representing common API objects
-
class
performline.products.common.models.Brand(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data from and working with an individual brand.
-
class
performline.products.common.models.BrandRules(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data rules for a specific brand.
-
class
performline.products.common.models.Campaign(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data from and working with an individual campaign.
-
class
performline.products.common.models.CampaignRules(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data rules for a specific campaign.
-
class
performline.products.common.models.Item(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data from and working with scorable content, regardless of product.
-
class
performline.products.common.models.RemediationStatus(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving all available remediation statuses in the platform.
-
class
performline.products.common.models.Rule(client, data=None, metadata={}, rest_root=None, primary_key=None, secondary_key=None)[source]¶ An object for retrieving data from and working with an individual rule.