Scoped_timeline + APP_INSTALLS doesn't get IMAGE_APP_DOWNLOAD cards


#1

Hi,

I’m having problems to get scoped_timeline for tweets with IMAGE_APP_DOWNLOAD cards.

1. I POST the card with:

$ twurl -X POST -H ads-api.twitter.com "/0/accounts/18ce53vrk7s/cards/image_app_download?name=MyName&app_country_code=US&googleplay_app_id=com.antidotesapp.play&wide_app_image_media_id=745637057628934144"
{"data_type":"card","data":{"name":"MyName","googleplay_app_id":"com.antidotesapp.play","preview_url":"https:\/\/cards.twitter.com\/cards\/18ce53vrk7s\/1vr5f","id":"1vr5f","account_id":"18ce53vrk7s","app_country
_code":"US","wide_app_image":"https:\/\/pbs.twimg.com\/ad_img\/745637057628934144\/oU5LrY0S?format=png&name=orig","created_at":"2016-06-22T15:22:46Z","updated_at":"2016-06-22T15:22:46Z","app_cta":"INSTALL_OPEN",
"deleted":false,"card_type":"IMAGE_APP_DOWNLOAD"},"request":{"params":{"name":"MyName","googleplay_app_id":"com.antidotesapp.play","account_id":"18ce53vrk7s","app_country_code":"US","wide_app_image":"https:\/\/p
bs.twimg.com\/ad_img\/745637057628934144\/oU5LrY0S?format=png&name=orig","card_type":"IMAGE_APP_DOWNLOAD"}}}

2. Then create the “Promoted-Only” tweet:

$ twurl -X POST -H ads-api.twitter.com "/0/accounts/18ce53vrk7s/tweet?status=test%20app%20install%20image%20https:\/\/cards.twitter.com\/cards\/18ce53vrk7s\/1vr5f&as_user_id=233631354"
{"data_type":"status","data":{"created_at":"Wed Jun 22 15:53:03 +0000 2016","id":745645785501564932,"id_str":"745645785501564932","text":"test app install image https:\\\/\\\/cards.twitter.com\\\/cards\\\/18ce53vrk7s\\\/1vr5f","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[]},"source":"\u003ca href=\"http:\/\/www.audiense.com\" rel=\"nofollow\"\u003eAudienseCo\u003c\/a\u003e","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":233631354,"id_str":"233631354","name":"Audiense","screen_name":"AudienseCo","location":"UK ","url":"http:\/\/www.audiense.com","description":"Audiense is a social marketing platform delivering rich & actionable insight to brands and agencies to uncover and connect with the right audience.","protected":false,"followers_count":200532,"friends_count":73644,"listed_count":4689,"created_at":"Mon Jan 03 18:47:47 +0000 2011","favourites_count":3969,"utc_offset":3600,"time_zone":"London","geo_enabled":true,"verified":true,"statuses_count":21702,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/378800000124772315\/15c08557743c62e9050879457bb2d668.png","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/378800000124772315\/15c08557743c62e9050879457bb2d668.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/707948029266022402\/tRDUwyMk_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/707948029266022402\/tRDUwyMk_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/233631354\/1457622928","profile_link_color":"6DC7DD","profile_sidebar_border_color":"FFFFFF","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"scopes":{"followers":false},"lang":"en"},"request":{"params":{"status":"test%20app%20install%20image%20https:\\\/\\\/cards.twitter.com\\\/cards\\\/18ce53vrk7s\\\/1vr5f","as_user_id":233631354,"account_id":"18ce53vrk7s"}}}

3. And finally GET scoped timeline with 0 results:

$ twurl -H ads-api.twitter.com "/0/accounts/18ce53vrk7s/scoped_timeline?user_id=233631354&objective=APP_INSTALLS"
{"data_type":"status","data":[],"next_cursor":null,"request":{"params":{"user_id":"233631354","objective":"APP_INSTALLS","account_id":"18ce53vrk7s"}}}

Maybe I’m doing something wrong. Let me know if someone have the same problem.

Thanks.


#2

Hi, the problem is that the URL in tweet text is not being escaped as you expect, please view:

https://twitter.com/replace with your user name/status/745645785501564932 to check how the tweet was made. The scoped_timeline only returns tweets that have been validated as eligible to be used for that line item objective (so since these aren’t passing as an app card, they aren’t returned)


#3

@JBabichJapan same thing happen after escaping correctly.

1 - “Promoted-Only” tweet:

$ twurl -X POST -H ads-api.twitter.com "/0/accounts/18ce53vrk7s/tweet?status=test%20app%20install%20image%20https%3A%2F%2Fcards.twitter.com%2Fcards%2F18ce53vrk7s%2F1vr5f&as_user_id=233631354"
{"data_type":"status","data":{"created_at":"Mon Jun 27 11:34:52 +0000 2016","id":747392749796745216,"id_str":"747392749796745216","text":"test app install image https:\/\/t.co\/b2zAgSRt6F","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[{"url":"https:\/\/t.co\/b2zAgSRt6F","expanded_url":"https:\/\/cards.twitter.com\/cards\/18ce53vrk7s\/1vr5f","display_url":"cards.twitter.com\/cards\/18ce53vr\u2026","indices":[23,46]}]},"source":"\u003ca href=\"http:\/\/www.audiense.com\" rel=\"nofollow\"\u003eAudienseCo\u003c\/a\u003e","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":233631354,"id_str":"233631354","name":"Audiense","screen_name":"AudienseCo","location":"UK ","url":"http:\/\/www.audiense.com","description":"Audiense is a social marketing platform delivering rich & actionable insight to brands and agencies to uncover and connect with the right audience.","protected":false,"followers_count":200643,"friends_count":73643,"listed_count":4693,"created_at":"Mon Jan 03 18:47:47 +0000 2011","favourites_count":3970,"utc_offset":3600,"time_zone":"London","geo_enabled":true,"verified":true,"statuses_count":21713,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/378800000124772315\/15c08557743c62e9050879457bb2d668.png","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/378800000124772315\/15c08557743c62e9050879457bb2d668.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/707948029266022402\/tRDUwyMk_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/707948029266022402\/tRDUwyMk_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/233631354\/1457622928","profile_link_color":"6DC7DD","profile_sidebar_border_color":"FFFFFF","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"scopes":{"followers":false},"lang":"en"},"request":{"params":{"status":"test%20app%20install%20image%20https%3A%2F%2Fcards.twitter.com%2Fcards%2F18ce53vrk7s%2F1vr5f","as_user_id":233631354,"account_id":"18ce53vrk7s"}}}

2 - GET scoped timeline:

$ twurl -H ads-api.twitter.com "/0/accounts/18ce53vrk7s/scoped_timeline?user_id=233631354&objective=APP_INSTALLS"
{"data_type":"status","data":[],"next_cursor":null,"request":{"params":{"user_id":"233631354","objective":"APP_INSTALLS","account_id":"18ce53vrk7s"}}}

I checked the Tweet at username/status/:id and it seems ok.


#4

I have the same problem :confused:


#5

Happens the same with the LEAD_GENERATION objective.


#6

I think that problem is because you’re not providing SCOPED_TO=none parameter

Could you try to add it?

Thanks!


#7

@hector_borras you’re right but I realised that if you create a “Promoted-Only” tweet with a IMAGE_APP_DOWNLOAD card link and media_ids parameter, then the scoped timeline don’t retrieve the tweet.