Unable to use a video tweet in a campaign

creative
video
api

#1

Account Id : 18ce54hc7pm
Campaign Id : 98zrp
Line Item Id : 9oj20
Tweet to be published : 902249445617754112
Objective : Video views

POST CALL : 1/accounts/18ce54hc7pm/promoted_tweets/
PARAMS : line_item_id, tweet_ids
ERROR : Tweet : 902249445617754112 not appropriate for objective VIDEO_VIEWS

Can you please help us in identifying why this error is coming. User is able to use the same tweet on Twitter UI without any errors.

Preview of this post is showing a video but post seems to be created as an image post. Post Details are shared below

twurl -H api.twitter.com “/1.1/statuses/show.json?id=902249445617754112” | python -m “json.tool”

{
    "contributors": null,
    "coordinates": null,
    "created_at": "Mon Aug 28 19:20:05 +0000 2017",
    "entities": {
        "hashtags": [],
        "media": [
            {
                "display_url": "pic.twitter.com/v8Am6rPnZh",
                "expanded_url": "https://twitter.com/xfinitymobile/status/902249445617754112/video/1",
                "id": 902249022232166400,
                "id_str": "902249022232166400",
                "indices": [
                    70,
                    93
                ],
                "media_url": "http://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
                "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
                "sizes": {
                    "large": {
                        "h": 1280,
                        "resize": "fit",
                        "w": 720
                    },
                    "medium": {
                        "h": 1067,
                        "resize": "fit",
                        "w": 600
                    },
                    "small": {
                        "h": 604,
                        "resize": "fit",
                        "w": 340
                    },
                    "thumb": {
                        "h": 150,
                        "resize": "crop",
                        "w": 150
                    }
                },
                "type": "photo",
                "url": "https://t.co/v8Am6rPnZh"
            }
        ],
        "symbols": [],
        "urls": [],
        "user_mentions": []
    },
    "extended_entities": {
        "media": [
            {
                "additional_media_info": {
                    "call_to_actions": {
                        "visit_site": {
                            "url": "https://www.xfinity.com/mobile/plan?CMP=SOC:PD:BAU:SUB:COM:XFM:INT593961b503266"
                        }
                    },
                    "description": "Pay by the gig and share data across lines for just $12/GB per month, or go Unlimited for just $45/line per month.",
                    "embeddable": false,
                    "monetizable": false,
                    "title": "It's your choice."
                },
                "display_url": "pic.twitter.com/v8Am6rPnZh",
                "expanded_url": "https://twitter.com/xfinitymobile/status/902249445617754112/video/1",
                "id": 902249022232166400,
                "id_str": "902249022232166400",
                "indices": [
                    70,
                    93
                ],
                "media_url": "http://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
                "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
                "sizes": {
                    "large": {
                        "h": 1280,
                        "resize": "fit",
                        "w": 720
                    },
                    "medium": {
                        "h": 1067,
                        "resize": "fit",
                        "w": 600
                    },
                    "small": {
                        "h": 604,
                        "resize": "fit",
                        "w": 340
                    },
                    "thumb": {
                        "h": 150,
                        "resize": "crop",
                        "w": 150
                    }
                },
                "type": "photo",
                "url": "https://t.co/v8Am6rPnZh"
            }
        ]
    },
    "favorite_count": 1,
    "favorited": false,
    "geo": null,
    "id": 902249445617754112,
    "id_str": "902249445617754112",
    "in_reply_to_screen_name": null,
    "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,
    "is_quote_status": false,
    "lang": "en",
    "place": null,
    "possibly_sensitive": false,
    "possibly_sensitive_appealable": false,
    "retweet_count": 0,
    "retweeted": false,
    "scopes": {
        "followers": false
    },
    "source": "<a href=\"https://ads.twitter.com\" rel=\"nofollow\">Twitter Ads</a>",
    "text": "The daily commute has evolved. It's time your mobile network did too. https://t.co/v8Am6rPnZh",
    "truncated": false,
    "user": {
        "contributors_enabled": false,
        "created_at": "Tue Dec 13 21:59:52 +0000 2016",
        "default_profile": false,
        "default_profile_image": false,
        "description": "Introducing a new kind of network designed to save you money.",
        "entities": {
            "description": {
                "urls": []
            },
            "url": {
                "urls": [
                    {
                        "display_url": "xfinitymobile.com",
                        "expanded_url": "http://xfinitymobile.com",
                        "indices": [
                            0,
                            23
                        ],
                        "url": "https://t.co/o5NZR5CZCE"
                    }
                ]
            }
        },
        "favourites_count": 4,
        "follow_request_sent": false,
        "followers_count": 2193,
        "following": false,
        "friends_count": 0,
        "geo_enabled": false,
        "has_extended_profile": false,
        "id": 808793586200432640,
        "id_str": "808793586200432640",
        "is_translation_enabled": false,
        "is_translator": false,
        "lang": "en",
        "listed_count": 3,
        "location": "",
        "name": "XFINITY Mobile",
        "notifications": false,
        "profile_background_color": "000000",
        "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
        "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
        "profile_background_tile": false,
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/808793586200432640/1496938511",
        "profile_image_url": "http://pbs.twimg.com/profile_images/900729531698298880/6dXv-Ufp_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/900729531698298880/6dXv-Ufp_normal.jpg",
        "profile_link_color": "259CD8",
        "profile_sidebar_border_color": "000000",
        "profile_sidebar_fill_color": "000000",
        "profile_text_color": "000000",
        "profile_use_background_image": false,
        "protected": false,
        "screen_name": "xfinitymobile",
        "statuses_count": 1558,
        "time_zone": "Pacific Time (US & Canada)",
        "translator_type": "none",
        "url": "https://t.co/o5NZR5CZCE",
        "utc_offset": -25200,
        "verified": true
    }
}

#2

Thanks for providing these details, @npurwar. It has everything we need.

It looks like we’re classifying the media asset as a photo. See extended_entities.media[0].type.

$ twurl -H api.twitter.com "/1.1/statuses/show/902249445617754112.json?trim_user=true"
{
  "created_at": "Mon Aug 28 19:20:05 +0000 2017",
  "id": 902249445617754112,
  "id_str": "902249445617754112",
  "text": "The daily commute has evolved. It's time your mobile network did too. https://t.co/v8Am6rPnZh",
  "truncated": false,
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": [],
    "media": [
      {
        "id": 902249022232166400,
        "id_str": "902249022232166400",
        "indices": [
          70,
          93
        ],
        "media_url": "http://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
        "url": "https://t.co/v8Am6rPnZh",
        "display_url": "pic.twitter.com/v8Am6rPnZh",
        "expanded_url": "https://twitter.com/xfinitymobile/status/902249445617754112/video/1",
        "type": "photo",
        "sizes": {
          "small": {
            "w": 340,
            "h": 604,
            "resize": "fit"
          },
          "large": {
            "w": 720,
            "h": 1280,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 600,
            "h": 1067,
            "resize": "fit"
          }
        }
      }
    ]
  },
  "extended_entities": {
    "media": [
      {
        "id": 902249022232166400,
        "id_str": "902249022232166400",
        "indices": [
          70,
          93
        ],
        "media_url": "http://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/902249022232166400/img/WKvuv1K_UpYepU7O.jpg",
        "url": "https://t.co/v8Am6rPnZh",
        "display_url": "pic.twitter.com/v8Am6rPnZh",
        "expanded_url": "https://twitter.com/xfinitymobile/status/902249445617754112/video/1",
        "type": "photo",
        "sizes": {
          "small": {
            "w": 340,
            "h": 604,
            "resize": "fit"
          },
          "large": {
            "w": 720,
            "h": 1280,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 600,
            "h": 1067,
            "resize": "fit"
          }
        },
        "additional_media_info": {
          "title": "It's your choice.",
          "description": "Pay by the gig and share data across lines for just $12/GB per month, or go Unlimited for just $45/line per month.",
          "call_to_actions": {
            "visit_site": {
              "url": "https://www.xfinity.com/mobile/plan?CMP=SOC:PD:BAU:SUB:COM:XFM:INT593961b503266"
            }
          },
          "embeddable": false,
          "monetizable": false
        }
      }
    ]
  },
  "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": 808793586200432640,
    "id_str": "808793586200432640"
  },
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 0,
  "favorite_count": 1,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "scopes": {
    "followers": false
  },
  "lang": "en"
}

Let us look into why this is. In the meantime, could you please provide an example request for how this specific Tweet was created?

We’ll provide an update as soon as we know more.

Thanks!


#3

@npurwar: Could you tell us whether this video was uploaded using the POST media/upload endpoint or native?


#4

@npurwar: We’ve taken a look at the metadata for the media asset in this Tweet. It looks like it’s set to non-embeddable, which is why it shows as the photo media type.

When creating a Tweet from the media library—for example, from https://ads.twitter.com/accounts/account_id/media (replacing account_id with your own account ID)—this (making the asset non-embeddable) will happen when a user clicks on “Edit media settings” and unselects the “Allow video to be embedded option.”

Then, when associating this type of Tweet with a line item for promotion, our validation doesn’t recognize that it contains a video and will, thus, result in the error you showed, above.

Please let us know if you have any additional questions.

Thanks for bringing this to our attention!


#5

The video was uploaded natively.


#6

@npurwar: When you create the Tweet, ensure that the video is embeddable. Please let us know if this resolves the issue. Thanks!