In here we are sharing promoted tweet details with image and tweet id obtained from twitter UI-creative page. when we try to access this same tweet details through an Ad API we can’t get the images . The API request and response is attached below:
**Request**
https://ads-api.twitter.com/{{version}}/accounts/{{account_id}}/tweets?tweet_type=PUBLISHED&tweet_ids=1559802708978044928
**Response**
{
"request": {
"params": {
"tweet_ids": [
"1559802708978044928"
],
"tweet_type": "PUBLISHED",
"account_id": "18ce54kub0e"
}
},
"next_cursor": null,
"data": [
{
"coordinates": null,
"retweeted": false,
"name": "202208_02",
"conversation_settings": "EVERYONE",
"source": "<a href=\"https://help.twitter.com/en/using-twitter/how-to-tweet#source-labels\" rel=\"nofollow\">advertiser-interface</a>",
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": []
},
"display_text_range": [
0,
103
],
"favorite_count": 1,
"in_reply_to_status_id_str": null,
"geo": null,
"id_str": "1559802708978044928",
"scopes": {
"followers": false
},
"in_reply_to_user_id": null,
"truncated": false,
"retweet_count": 0,
"scheduled_status": null,
"id": 1559802708978044928,
"in_reply_to_status_id": null,
"nullcast": true,
"created_at": "Wed Aug 17 07:22:00 +0000 2022",
"place": null,
"scheduled_at": null,
"tweet_type": "PUBLISHED",
"favorited": false,
"card_uri": "card://1559801617725407232",
"full_text": "制作部門に「働き方改革」をもたらすクリエイティブ特化型プロジェクト管理ツール「AdFlow」(アドフロー)。\n利用者16万人突破!クリエイティブワークの生産性を高めてより効率的なweb広告運用を実現します!",
"lang": "ja",
"contributors": null,
"in_reply_to_screen_name": null,
"in_reply_to_user_id_str": null,
"user": {
"utc_offset": null,
"name": "AdFlow@制作進行管理ツール・web広告/販促物の管理に(テレワーク中)",
"friends_count": 479,
"screen_name": "AdFlow_PR",
"location": "東京都渋谷区",
"protected": false,
"url": "http://adflow.jp",
"profile_image_url": "http://pbs.twimg.com/profile_images/915085391111139328/AQ666GQp_normal.jpg",
"profile_background_color": "EBEBEB",
"profile_use_background_image": true,
"is_translator": false,
"geo_enabled": false,
"description": "制作業務に特化したプロジェクト管理ツール「AdFlow」の公式アカウントです。バナー・LPなどクリエイティブ関連のニュースをメインにAdFlowの最新情報などをお知らせしていきます。(開発・運営:株式会社クリエイターズマッチ)",
"profile_link_color": "990000",
"id_str": "606110726",
"listed_count": 8,
"default_profile_image": false,
"followers_count": 296,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/915085391111139328/AQ666GQp_normal.jpg",
"profile_sidebar_border_color": "DFDFDF",
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme7/bg.gif",
"favourites_count": 151,
"following": null,
"default_profile": false,
"withheld_in_countries": [],
"id": 606110726,
"profile_background_tile": false,
"contributors_enabled": false,
"follow_request_sent": null,
"created_at": "Tue Jun 12 07:28:49 +0000 2012",
"profile_sidebar_fill_color": "F3F3F3",
"translator_type": "none",
"lang": null,
"profile_text_color": "333333",
"notifications": null,
"verified": false,
"time_zone": null,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/606110726/1588061460",
"statuses_count": 4431,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme7/bg.gif",
"is_translation_enabled": false
},
"tweet_id": "1559802708978044928"
}
]
}
How we can get the tweet image URL or its media key through this Ad API ?