I used the following code in Python
ACCOUNT_ID = '1887vp' account = client.accounts(id=ACCOUNT_ID) campaign = account.campaigns().next() line_item = account.line_items(None, campaign_ids=campaign.id).next() metric_groups = [METRIC_GROUP.ENGAGEMENT] for line_item in account.line_items(): print(line_item.stats(metric_groups))
This should give me the engagement stats for all line items within this account.
While i can see the line item names and ids just fine, when i try to get the engagement stats, i get all engagement stats as None for every line item in this account.
Could someone please tell me what did i miss here?