@etam: The maximum number of line items per campaign is 100 and 4,000 across all campaigns. (See POST accounts/:account_id/line_items.)
We’ve done some additional investigating. It looks like you’re trying to associate 819999933424017408 with a line item that belongs to account ID 2dgb8g (@WalmartCanada). However, 819999933424017408 belongs to another account—@WalmartCanadaFr.
$ twurl -H api.twitter.com "/1.1/statuses/show.json?id=823601949777870851&tweet_mode=extended&trim_user=false" | jq
{
"created_at": "Mon Jan 23 18:43:01 +0000 2017",
"id": 823601949777870851,
"id_str": "823601949777870851",
"full_text": "RT @WalmartCanadaFr: Nous n’avons pas de bouledogues français, mais cette adorable literie de scooters, oui! https://t.co/s2SuK0zVGH https:…",
"truncated": false,
"display_text_range": [
0,
140
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [
{
"screen_name": "WalmartCanadaFr",
"name": "Walmart en français",
"id": 269551085,
"id_str": "269551085",
"indices": [
3,
19
]
}
],
"urls": [
{
"url": "https://t.co/s2SuK0zVGH",
"expanded_url": "http://bit.ly/2iL9D3U",
"display_url": "bit.ly/2iL9D3U",
"indices": [
109,
132
]
}
]
},
"source": "<a href=\"http://www.adparlor.com\" rel=\"nofollow\">AdParlor</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 143528416,
"id_str": "143528416",
"name": "Walmart Canada",
"screen_name": "WalmartCanada",
"location": "",
"description": "The official Twitter of Walmart Canada. We save Canadians money so they can live better. En Français : @WalmartCanadaFr",
"url": "http://t.co/R4t570Ithj",
"entities": {
"url": {
"urls": [
{
"url": "http://t.co/R4t570Ithj",
"expanded_url": "http://walmart.ca",
"display_url": "walmart.ca",
"indices": [
0,
22
]
}
]
},
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 100010,
"friends_count": 1497,
"listed_count": 446,
"created_at": "Thu May 13 18:27:46 +0000 2010",
"favourites_count": 942,
"utc_offset": -18000,
"time_zone": "Eastern Time (US & Canada)",
"geo_enabled": true,
"verified": true,
"statuses_count": 19559,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "FFFFFF",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/471392487433461760/6b4z6OW_.png",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/471392487433461760/6b4z6OW_.png",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/795762552760217600/GgLPFR47_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/795762552760217600/GgLPFR47_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/143528416/1483374285",
"profile_link_color": "0084B4",
"profile_sidebar_border_color": "000000",
"profile_sidebar_fill_color": "DDEEF6",
"profile_text_color": "333333",
"profile_use_background_image": false,
"has_extended_profile": false,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweeted_status": {
"created_at": "Fri Jan 13 20:09:53 +0000 2017",
"id": 819999933424017408,
"id_str": "819999933424017408",
"full_text": "Nous n’avons pas de bouledogues français, mais cette adorable literie de scooters, oui! https://t.co/s2SuK0zVGH https://t.co/OMEtaeqZK8",
"truncated": false,
"display_text_range": [
0,
111
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [
{
"url": "https://t.co/s2SuK0zVGH",
"expanded_url": "http://bit.ly/2iL9D3U",
"display_url": "bit.ly/2iL9D3U",
"indices": [
88,
111
]
}
],
"media": [
{
"id": 819929496174215168,
"id_str": "819929496174215168",
"indices": [
112,
135
],
"media_url": "http://pbs.twimg.com/media/C2D5iFhUQAADGLD.jpg",
"media_url_https": "https://pbs.twimg.com/media/C2D5iFhUQAADGLD.jpg",
"url": "https://t.co/OMEtaeqZK8",
"display_url": "pic.twitter.com/OMEtaeqZK8",
"expanded_url": "https://twitter.com/WalmartCanadaFr/status/819999933424017408/photo/1",
"type": "photo",
"sizes": {
"small": {
"w": 680,
"h": 680,
"resize": "fit"
},
"large": {
"w": 1080,
"h": 1080,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"medium": {
"w": 1080,
"h": 1080,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 819929496174215168,
"id_str": "819929496174215168",
"indices": [
112,
135
],
"media_url": "http://pbs.twimg.com/media/C2D5iFhUQAADGLD.jpg",
"media_url_https": "https://pbs.twimg.com/media/C2D5iFhUQAADGLD.jpg",
"url": "https://t.co/OMEtaeqZK8",
"display_url": "pic.twitter.com/OMEtaeqZK8",
"expanded_url": "https://twitter.com/WalmartCanadaFr/status/819999933424017408/photo/1",
"type": "photo",
"sizes": {
"small": {
"w": 680,
"h": 680,
"resize": "fit"
},
"large": {
"w": 1080,
"h": 1080,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"medium": {
"w": 1080,
"h": 1080,
"resize": "fit"
}
}
}
]
},
"source": "<a href=\"https://ads.twitter.com\" rel=\"nofollow\">Twitter Ads</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 269551085,
"id_str": "269551085",
"name": "Walmart en français",
"screen_name": "WalmartCanadaFr",
"location": "",
"description": "Compte Twitter officiel de Walmart Canada en français. In English: @WalmartCanada",
"url": "http://t.co/z1okxusJWS",
"entities": {
"url": {
"urls": [
{
"url": "http://t.co/z1okxusJWS",
"expanded_url": "http://walmart.ca/fr",
"display_url": "walmart.ca/fr",
"indices": [
0,
22
]
}
]
},
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 4605,
"friends_count": 696,
"listed_count": 60,
"created_at": "Mon Mar 21 00:52:44 +0000 2011",
"favourites_count": 185,
"utc_offset": -18000,
"time_zone": "Eastern Time (US & Canada)",
"geo_enabled": true,
"verified": true,
"statuses_count": 1832,
"lang": "fr",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "FFFFFF",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/471393024283381760/gyP4Z7xE.png",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/471393024283381760/gyP4Z7xE.png",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/795762778644484096/5XPCLjAU_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/795762778644484096/5XPCLjAU_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/269551085/1483374562",
"profile_link_color": "0084B4",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "DDEEF6",
"profile_text_color": "333333",
"profile_use_background_image": false,
"has_extended_profile": false,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 1,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"possibly_sensitive_appealable": false,
"scopes": {
"followers": false
},
"lang": "fr"
},
"is_quote_status": false,
"retweet_count": 1,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"possibly_sensitive_appealable": false,
"scopes": {
"followers": false
},
"lang": "fr"
}
On the POST accounts/:account_id/promoted_tweets endpoint request, @WalmartCanada’s Retweet is being associated with the line item. However, this points to @WalmartCanadaFr’s original Tweet.
We’ll investigate further to determine whether this is the expected behavior.
Thanks!