having little trouble here filtering ad sets via facebook ads python sdk.
i'm making following call (the variable account instance of adaccount):
account_adsets = account.get_ad_sets(fields=fields, params={'effective_status':['active'], 'status':['active'], 'date_preset':'today', 'is_completed':false, 'include_deleted':false})
and i'm getting adsets marked "not delivering, not approved" in "delivery" column of power editor, in addition ones marked "active".
as can see in call above, i'm restricting things 'status':['active'], have thought filter our disapproved adsets (as suggested in adset source here, , copied below):
class adset( abstractcrudobject, hasadlabels, canvalidate, ): def __init__(self, fbid=none, parent_id=none, api=none): self._isadset = true super(adset, self).__init__(fbid, parent_id, api) class effectivestatus: active = 'active' paused = 'paused' deleted = 'deleted' pending_review = 'pending_review' disapproved = 'disapproved' preapproved = 'preapproved' pending_billing_info = 'pending_billing_info' campaign_paused = 'campaign_paused' archived = 'archived' adset_paused = 'adset_paused'
anyone have ideas how stop ad sets appearing?
ad sets aren't approved or disapproved, ads are.
i'm not 100% sure you're seeing in power editor ui, suspect it's showing 'not delivering, not approved' via detecting of ads in ad set disapproved
in case, should filter on ads' status fetching @ level , working ad sets , campaigns, or filtering after current call based on ads in ad set
Comments
Post a Comment