I can't get AdCampaign's get_stats() method to return the "actions" field. Snippet:
stats = list(ad_campaign.get_stats(fields=[
'impressions',
'spent',
'clicks',
'actions',
]))
print stats[0]
>>> <AdStats> {"clicks": 0, "impressions": 0, "spent": 0}
I have also tried to get the report on AdAccount, AdSet and AdGroup levels, but none of them had the "actions" field.
I'm assuming I have misconfigured my campaign, so here's a basic rundown:
AdCampaign:
- status: "PAUSED"
- objective: "WEBSITE_CONVERSIONS"
AdCampaign has one AdSet:
- bid_type: "ABSOLUTE_OCPM"
- bid_info: {'ACTIONS': 1}
- promoted_object: {'pixel_id': <valid pixel id string>}
- start_time: one month in the future
AdSet has one AdGroup:
- objective: "WEBSITE_CONVERSIONS"
I also queried the AdGroup object for conversion_specs, they are set and match defaults described in the doc.
Aucun commentaire:
Enregistrer un commentaire