Navigate to Assets
Click Export Post IDs to start setting up new export
Select your ad account
4. Click + button under the Scope to select the items. You can export all post IDs in a selected campaign, ad set, or ads.
Or use filters to match the exported items:
5. Now you can download the CSV file with post IDs