xdevplatform / twitter-python-ads-sdk

A Twitter supported and maintained Ads API SDK for Python.
https://twitterdev.github.io/twitter-python-ads-sdk/
MIT License
189 stars 106 forks source link

“First View” campaign has line item returned as active entity, but not found for the account #237

Open ChugaoQ opened 4 years ago

ChugaoQ commented 4 years ago

After pooling all active line item entities for the account, I made the request to pool properties for each line item ID. But I see the error:

twitter_ads.error.NotFound: <NotFound object at 0x1aa1b52ad08 code=404 details=[{'code': 'NOT_FOUND', 'message': 'Line Item xxxxx was not found for Account xxxxx', 'parameter': 'line_item_id'}]>

I was told that line item belongs to a "First View" campaign.

sfontana commented 4 years ago

I have the exact same problem.

LineItem.active_entities(account, start_time, end_time) returns active entities and indeed they all have some stats. However when I try to get more information about a particular LineItem I get an error

LineItem.load(account, 'gsmga').name
twitter_ads.error.NotFound: <NotFound object at 0x10d443888 code=404 details=[{'message': 'Line Item gsmga was not found for Account xxxx', 'code': 'NOT_FOUND', 'parameter': 'line_item_id'}]>

and LineItem.all(account) does not include the missing LineItem gsmga.

and as @ChugaoQ also noticed these stats belong to Twitter First View campaign. How can we properly get the information about First View LineItems and Campaign? In my case, I am especially interested in the Campaign Name for reporting purposes.

I cannot find anything related to this in this repository nor in the official documentation.

@tushdante can you shed some light on this? To me it looks like an important feature of Twitter Ads and I find it strange that there's nothing on this. I'm probably missing something, hence the question :)

sfontana commented 4 years ago

Got an answer in the Twitter forum here. View First campaigns are not supported 😮