Media Library response :

However, there is no line_item_id or campaign_id

What I want is: material(such as GIF , IMAGE , VIDEO) come from which line_item or campaign.

I use python sdk

GIF , IMAGE , VIDEO = media_url

The Media Library contains all assets that have been or can be used in various Creative Formats. Since these assets can be used in multiple promotable types (Tweets, Cards, etc) the Media Library endpoint wouldn’t describe the relationship with how it was used.

Could you describe what information you are looking to present to your users?