'How to convert facebook ad set data into pandas dataframe
i extracted data from facebook_business and we get output as like json format, but i want in pandas data frame below are code and output
from facebook_business.adobjects.adset import AdSet
fields = ['id','source_adset','adlabels','name','daily_spend_cap','attribution_spec','created_time','creative_sequence','updated_time','status','start_time','end_time','targeting']
adset = AdSet(23850235887220453).api_get(fields=fields)
print(adset)
Output :
<AdSet> {
"attribution_spec": [
{
"event_type": "CLICK_THROUGH",
"window_days": 1
}
],
"created_time": "2022-01-06T16:02:45+0300",
"id": "23850235887220453",
"name": "FBSC-WW-MBAESS-060122-WT",
"start_time": "2022-01-06T16:02:46+0300",
"status": "PAUSED"
}
How to make pandas dataframe of above output
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
