- monetize_api
- AdUnitStatusMap
- AdUnitStatus
- AdUnits
- Platform
- Metrics
- Networks
- Breakdowns
- MonetizeAPI
- set_credentials
- get_user_ad_revenue
- get_impression_ad_revenue
- get_monetization_data
- get_apps
- add_temporary_app
- add_app
- get_instances
- add_instances
- delete_instance
- update_instances
- get_mediation_groups
- create_mediation_group
- update_mediation_group
- delete_mediation_group
- get_placements
- add_placements
- delete_placements
- update_placements
- placement_config
- mediation_group_priority
- instance_config
- InstanceConfig
- IronSourceInstance
- IronSourceBidding
- AdColonyInstance
- AdColonyBidding
- AdMobInstance
- AdManager
- AmazonInstance
- ApplovinInstance
- ChartboostInstance
- CrossPromotionBidding
- CSJInstance
- DirectDeals
- FacebookInstance
- FacebookBidding
- FyberInstance
- HyperMXInstance
- InMobiInstance
- InMobiBidding
- LiftoffInstance
- MaioInstance
- MediaBrixInstance
- MyTarget
- TapJoyInstance
- TapJoyBidding
- PangleInstance
- PangleBidding
- UnityAdsInstance
- SmaatoInstance
- SnapInstance
- SuperAwesomeInstance
- TencentInstance
- YahooBidding
- VungleInstance
- VungleBidding
IronSource Monetize API
class MonetizeAPI()
IronSource Monetize API
def set_credentials(user: str, token: str, secret: str)
sets the API credentials
Arguments:
user
(str
): - user name from the platformtoken
(str
): - token from the platformsecret
(str
): - secret from the platform
async def get_user_ad_revenue(date: str,
application_key: str,
stream: bool = False) -> Union[str, io.BytesIO]
Get User Ad Revenue per application key
Arguments:
date
(str
): - date in 'YYYY-MM-DD' formatapplication_key
(str
): - the application key for which user ad revenue is being requestedstream
(bool
): - (Defaults - False) if true stream will be returned
Returns:
user ad revenue as string or byte stream
async def get_impression_ad_revenue(
date: str,
application_key: str,
stream: bool = False) -> Union[str, io.BytesIO]
Impressions level Ad Revenue per application
Arguments:
date
(str
): - date in 'YYYY-MM-DD' formatapplication_key
: - the application key for which user ad revenue is being requestedapplication_key
: strstream
(bool
): - (Defaults - False) if true stream will be returned
Returns:
Impression level ad revenue as string or byte stream
async def get_monetization_data(
start_date: str,
end_date: str,
application_key: str = None,
country: str = None,
ad_units: AdUnits = None,
ad_source: Networks = None,
metrics: Iterable[Metrics] = None,
breakdowns: Iterable[Breakdowns] = None) -> dict
Get monetization reporting
Arguments:
start_date
(str
): Report start date in the following format YYYY-MM-DDend_date
(str
): Report end date in the following format YYYY-MM-DDapplication_key
(str, optional
): The application key for the reportcountry
(str, optional
): Country code in 2 letter country code, as per[ISO 3166-1 Alpha-2] <https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes>
_.ad_units
(AdUnits, optional
): Filter for specific AdUnit (RewardedVideo, Interstitial, Banner, Offerwall)ad_source
(Networks, optional
): Filter for specific Ad Source - network.metrics
(Iterable[Metrics], optional
): List of metrics see supported breakdown and metricsbreakdowns
(Iterable[Breakdowns], optional
): List of breakdowns see supported breakdown and metrics
Returns:
None if there was an error fetching monetization data or dictionary with the data
async def get_apps() -> dict
Get list of apps
Returns:
dict
: dictionary of list of apps from the account
async def add_temporary_app(app_name: str,
platform: Platform,
coppa: bool,
ad_unit_status: AdUnitStatusMap = None,
ccpa: bool = None)
Adds a temporary app
Arguments:
app_name
(str
): Application's nameplatform
(Platform
): Application's platform from Platformcoppa
(bool
): The COPPA settings of the application (True/False)ad_unit_status
(AdUnitStatusMap
): Ad Unit status map see AdUnitStatusMapccpa
(bool
): The CCPA settings of the application (True/False)
Returns:
dict with new application key
async def add_app(app_store_url: str,
taxonomy: str,
coppa: bool,
ad_unit_status: AdUnitStatusMap = None,
ccpa: bool = None)
Adds application which is already live in the store
Arguments:
app_store_url
(str
): iOS / Android app store url for the applicationtaxonomy
(str
): the application sub-genre - directory of valid labels: https://developers.is.com/ironsource-mobile/air/taxonomy-2 \ncoppa
(bool
): The COPPA settings of the application (True/False)ad_unit_status
(AdUnitStatusMap
): Ad Unit status map see AdUnitStatusMapccpa
(bool
): The CCPA settings of the application (True/False)
Returns:
dict with new application key
async def get_instances(application_key: str) -> dict
Get Instances list for a given application key
Arguments:
application_key
(str
): application key to get instances for
Returns:
dict
: return JSON format list of the instances
async def add_instances(application_key: str,
instances: Iterable[InstanceConfig])
Adds new instances to an app
Arguments:
application_key
(str
): Application Key to add instance to.instances
(Iterable[InstanceConfig]
): List of InstanceConfigs to be add.
Returns:
dict with all the instances of the app
async def delete_instance(application_key: str, instance_id: int)
Deletes instance from application
Arguments:
application_key
(str
): Application key to delete instance frominstance_id
(int
): instance id to delete
Returns:
return list of all instances belongs to the ap
async def update_instances(application_key: str,
instances: Iterable[InstanceConfig])
Updates instances for an application
Arguments:
application_key
(str
): Application key to update instances forinstances
(Iterable[InstanceConfig]
): list of instances to update (instance must contain instance id)
Returns:
list of all instances
async def get_mediation_groups(application_key: str)
returns mediation groups for an application
Arguments:
application_key
(str
): application key to fetch mediation groups
Returns:
list of mediation groups
async def create_mediation_group(
application_key: str,
ad_unit: AdUnits,
group_name: str,
group_countries: Iterable[str],
group_position: int = None,
group_segment: int = None,
ad_source_priority: MediationGroupPriority = None)
Creates new mediation group for an application
Arguments:
application_key
(str
): Application key to create new mediation group forad_unit
(AdUnits
): Ad unit to create mediation group for (see AdUnits)group_name
(str
): Group's namegroup_countries
(Iterable[str]
): List of group countries in ISO 3166-1 Alpha-2group_position
(int, optional
): Position of the group in the groups list, defaults to Nonegroup_segment
(int, optional
): Segment ID attached to the group, defaults to Nonead_source_priority
(MediationGroupPriority, optional
): AdSource and their priority in the group (see MediationGroupPriority), defaults to None
Raises:
Exception
: When API error occurs
Returns:
dict
: list of groups belongs to the app in json format
async def update_mediation_group(
application_key: str,
group_id: int,
group_name: str = None,
group_countries: Iterable[str] = None,
group_segments: int = None,
ad_source_priority: MediationGroupPriority = None)
Updates mediation group for an app
Arguments:
application_key
(str
): Application key to update group forgroup_id
(int
): Id of the group to updategroup_name
(str
): (optional) - Group namegroup_countries
(Iterable[str]
): (optional) - List of group countries in ISO 3166-1 Alpha-2group_segments
: (int, optional
) Group segment to updatead_source_priority
: (MediationGroupPriority, optional
) Ad Sources and their priority in the group (see MediationGroupPriority)
Returns:
List of group for the application after the changes
async def delete_mediation_group(application_key: str, group_id: int)
Deletes group for an application
Arguments:
application_key
(str
): Application key to delete the group forgroup_id
(int
): The group ID to delete
Returns:
List of group for the application after the changes
async def get_placements(application_key: str) -> dict
Get list of placements
Arguments:
application_key
(str
): Application key for placements
Returns:
dict
: json list of placements from the application
async def add_placements(application_key: str,
placements: Iterable[Placement]) -> dict
Create new placements, include capping and pacing setup, in your application account
Arguments:
application_key
(str
): Application key of the appplacements
(Iterable[Placement]
): Array (list) of placements to be added/created
Returns:
json
: placement identifier - This parameter is not shown in the ironSource platform and you can retrieve it using the get_placements method. You will need to use the id when editing/deleting placements.
async def delete_placements(application_key: str, ad_unit: AdUnits,
placement_id: int) -> str
Archive existing placements in your applications
Arguments:
application_key
(str
): Application key to delete placement fromad_unit
(AdUnits
): Ad Unit typeplacement_id
(int
): placement id to delete
Returns:
return True
if successful
async def update_placements(application_key: str,
placements: Iterable[Placement])
Updates placements for an application
Arguments:
application_key
(str
): Application key to update placements forplacements
(Iterable[Placement]
): list of placements to update (placement must contain placement id)
Returns:
True
if successful
Module for creating placements object
class Capping()
Capping Class
Arguments:
limit
(int
): Capping limit (max 1000).interval
(str
): Capping interval: 'd' - days or 'h' - hoursenabled
(bool
): True is enabled, False is disabled.
Raises:
TypeError
: When wrong type was setValueError
: when limit or interval values are wrong
class Pacing()
Pacing Class
Arguments:
minutes
(float
): Minimum gap in minutes between ad delivery (max 1000).enabled
(bool
): True is enabled, False is disabled.
Raises:
TypeError
: when enabled type is wrong.
class Placement()
Placement Object
Arguments:
ad_unit
(AdUnits
): Ad Unit for placementad_delivery
(bool
): Ad delivery is turned on or offname
(str, optional
): placement unique name - only required for add_placements methodplacement_id
(int, optional
): Placement unique identifier - not used for add_placements methoditem_name
(str, optional
): Reward name (max 30 chars) - rewardedVideo onlyreward_amount
(int, optional
): Amount of items to gift for a single ad view (max 2000000000) - rewardedVideo onlycapping
(Capping, optional
): Capping for placement, defaults to Nonepacing
(Pacing, optional
): pacing for placement, defaults to None
Raises:
ValueError
:TypeError
:
Module for Mediation Group Tier Priority
class TierType(enum.Enum)
Enum representing different tier types for mediation group
class MediationGroupTier()
Mediation Group Tier
def add_instances(network: Networks,
instance_id: int,
rate: int = None,
position: int = None,
capping: int = None)
Adds instance to group Tier
Arguments:
network
: a network from Networksinstance_id
: ID of the instance for the network (see MonetizeAPI().get_instances())rate
: Optional: overrides the cpm of the instance with rateposition
: Optional: The position of the instance in the waterfall, only for Manual tier typecapping
: Optional: Set capping for the instance per session
def get_instance_list() -> list
Returns list of instances in the tier
def remove_instance(network: Networks, instance_id: int)
Removes instance from the tier.
Arguments:
network
: The Network of the instance to remove.instance_id
: Instance ID to remove.
def get_tier_type() -> TierType
Returns:
the tier type of the group
class MediationGroupPriority()
Class representing a groups priority of tiers
def set_mediation_group_tier(group_tier: MediationGroupTier,
position: int) -> bool
sets group tier in specific place in the group (tier1, tier2, tier3)
Arguments:
group_tier
: MediationGroupTier to be added to the group tier listposition
: The Position of the tier (0-2), Ignored in case of bidding tier.
Returns:
true upon successful addition of the tier to the group list.
def remove_tier(position: int)
Removes tier from the group
Arguments:
position
: position of the tier to be removed (0-2)
def remove_bidders()
Removes bidders from the group
def get_bidders()
Returns groups bidders list
def get_tiers() -> Iterable[any]
Returns groups tiers list
class IronSourceInstance(IronSourceBase)
Create IronSource Instance
Arguments:
instance_name
(str
): name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapplication_key
(str
): Application key for the instancepricing
(Dict[int, List[str]], optional
): dictionary of price and list of countries, defaults to Noneinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1
class IronSourceBidding(IronSourceBase)
Create IronSource bidding instance
Arguments:
instance_name
(str
): name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapplication_key
(str
): Application key for the instancepricing
(Dict[int, List[str]], optional
): dictionary of price and list of countries, defaults to Noneinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1
class AdColonyInstance(AdColonyBase)
AdColony instance
Arguments:
instance_name
(str
): name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): AdColony App IDzone_id
(str
): AdColony Zone IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class AdColonyBidding(AdColonyBase)
AdColony Bidding instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): AdColony App IDzone_id
(str
): AdColony Zone IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class AdMobInstance(InstanceConfig)
AdMob instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): AdMob App IDad_unit_id
(str
): AdMob AdUnit IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class AdManager(InstanceConfig)
Ad Manager instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): AdManager App IDad_unit_id
(str
): AdManager Ad Unit IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class AmazonInstance(InstanceConfig)
Amazon Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_key
(str
): Amazon Application Keyec
(str
): Amazon ECstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class ApplovinInstance(InstanceConfig)
Applovin Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withsdk_key
(str
): Applovin SDK Keyzone_id
(str
): Applovin Zone IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class ChartboostInstance(InstanceConfig)
Chartboost Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Charboost App IDapp_signature
(str
): Chartboost App Signaturead_location
(str
): Charboost Ad Locationstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class CrossPromotionBidding(InstanceConfig)
Cross Promotion Bidding Instance"
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withtraffic_id
(str
): Cross Promotion traffic IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class CSJInstance(InstanceConfig)
CSJ Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): CSJ Application IDslot_id
(str
): CSJ Slot IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class DirectDeals(InstanceConfig)
Direct Deals Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withtraffic_id
(str
): Direct Deal Traffic IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class FacebookInstance(FacebookBase)
Facebook Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Facebook App IDuser_access_token
(str
): Facebook User Access Tokenplacement_id
(str
): Facebook Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class FacebookBidding(FacebookBase)
Facebook Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Facebook Application IDuser_access_token
(str
): Facebook User Access Tokenstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class FyberInstance(InstanceConfig)
Fyber Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Fyber Application IDad_spot_id
(str
): Fyber Ad Spot IDcontent_id
(str
): Fyber Content IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class HyperMXInstance(InstanceConfig)
HyperMXInstance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withplacement_id
(str
): HyperMX Placement IDdistributor_id
: HyperMX Distributor Idstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class InMobiInstance(InMobiBase)
InMobi Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withplacement_id
(str
): InMobi Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class InMobiBidding(InMobiBase)
InMobi Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withplacement_id
(str
): InMobi Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class LiftoffInstance(InstanceConfig)
Liftoff Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): LiftOff Application IDad_unit_id
(str
): LiftOff Ad Unit IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class MaioInstance(InstanceConfig)
Maio Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Maio App IDmedia_id
(str
): Maio Media IDzone_id
(str
): Maio ZoneIDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class MediaBrixInstance(InstanceConfig)
MediaBrix Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): MediaBrix App IDreporting_property
(str
): MediaBrix Reporting propertyzone
(str
): MediaBrix Zonestatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class MyTarget(InstanceConfig)
MyTarget Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withslot_id
(str
): MyTarget Slot IDplacement_id
(str
): MyTarget Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class TapJoyInstance(TapJoyBase)
TapJoy Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withsdk_key
(str
): TapJoy SDK Keyapi_key
(str
): TapJoy API Keyplacement_name
(str
): TapJoy Placement Namestatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class TapJoyBidding(TapJoyBase)
TapJoy Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withsdk_key
(str
): TapJoy SDK Keyapi_key
(str
): TapJoy API Keyplacement_name
(str
): TapJoy Placement Namestatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class PangleInstance(PangleBase)
Pangle Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Pangle App IDslot_id
(str
): Pangle Slot IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class PangleBidding(PangleBase)
Pangle Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Pangle App IDslot_id
(str
): Pangle Slot IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class UnityAdsInstance(InstanceConfig)
Unity Ads Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withsource_id
(str
): Unity Source IDzone_id
(str
): Unity Zone IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class SmaatoInstance(InstanceConfig)
Smaato Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapplication_name
(str
): Smaato Application Namead_space_id
(str
): Smaato Ad Space IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class SnapInstance(InstanceConfig)
Snap Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Snap Application IDslot_id
(str
): Snap Slot IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class SuperAwesomeInstance(InstanceConfig)
SuperAwesome Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): SuperAwesome Application IDplacement_id
(str
): SuperAwesome Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class TencentInstance(InstanceConfig)
Tencent Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Tencent Application IDplacement_id
(str
): Tencent Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class YahooBidding(InstanceConfig)
Yahoo Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Yahoo Application IDsite_id
(str
): Yahoo Site IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class VungleInstance(VungleBase)
Vungle Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Vungle Application IDreporting_api_id
(str
): Vungle Reporting API IDplacement_id
(str
): Vungle Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class VungleBidding(VungleBase)
Vungle Bidding Instance
Arguments:
instance_name
(str
): Name for the instancead_unit
(AdUnits
): Ad Unit that the instance will be used withapp_id
(str
): Vungle Application IDreporting_api_id
(str
): Vungle Reporting API IDplacement_id
(str
): Vungle Placement IDstatus
(bool, optional
): Instance is turned on or off, defaults to Trueinstance_id
(int, optional
): instance id of the instance for update request, defaults to -1rate
(float, optional
): instance rate, defaults to None
class AdUnitStatusMap(dict)
This class represents mapping of Ad Units to their active status example:
adunit_map = AdUnitStatusMap()
adunit_map[AdUnits.RewardedVideo] = AdUnitStatus.Live
class AdUnitStatus(enum.Enum)
Enum class represents Ad Unit Status
class AdUnits(enum.Enum)
Enum class represents Ad Unit
class Platform(enum.Enum)
Enum class represents platfroms
class Metrics(enum.Enum)
Enum class represents reporting metrics
class Networks(enum.Enum)
Enum class represents networks
class Breakdowns(enum.Enum)
Enum class represents reporting breakdowns