def delete_campaign(request, camid):
    FacebookAdsApi.init(access_token=access_token,
                        app_id=app_id,
                        app_secret=app_secret)

    campaign = Campaign(camid)
    campaign.remote_delete()

    return redirect('view-campaign')
Example #2
0
 def campaign_delete(self, campaign_id):
     campaign = Campaign(campaign_id)
     campaign.remote_delete()
     print("Sucussfully Campaign deleted!")