Suggestion call not working in emoji targeting

targeting
api

#1

These are the 2 calls I tried to use to get suggestions for emoji targeting. Could u please tell me if this is an issue on my side in the call or a bug?

  1. twurl -H ‘ads-api.twitter.com’ ‘/1/accounts/18ce53uo3nm/targeting_suggestions?suggestion_type=KEYWORD&targeting_values=\ud83d\ude05’ -t | python -mjson.tool

{
“data”: [],
“data_type”: “targeting_suggestion”,
“request”: {
“params”: {
“account_id”: “18ce53uo3nm”,
“suggestion_type”: “KEYWORD”,
“targeting_values”: [
"\ud83d\ude05"
]
}
}
}

  1. twurl -H ‘ads-api.twitter.com’ ‘/1/accounts/18ce53uo3nm/targeting_suggestions?suggestion_type=KEYWORD&targeting_values=👍’ -t | python -mjson.tool

{
“errors”: [
{
“code”: “ILLEGAL_CHARACTERS”,
“message”: “Illegal unicode characters presented in string \ud83d\udc4d”,
“parameter”: “”
}
],
“request”: {
“params”: {
“account_id”: “18ce53uo3nm”,
“suggestion_type”: “KEYWORD”
}
}
}


#2

Hey @npurwar

Thank you for bringing this to our attention! We’ve been able to reproduce the issue and are currently working on a fix. We should have an update for you by tomorrow.

Thanks!


#3

Hi

Please let us know when this is fixed so that we can retry at our end.

Also, we were facing another issue where we are not able to get reach estimate via api. The issue is intermittent but as soon as the emoji is replaced by another keyword say ‘cricket’, we get the reach estimate.

Please find the api calls and responses below :

twurl -H ‘ads-api.twitter.com’ ‘/1/accounts/18ce53uo3nm/reach_estimate/?locations=96683cc9126741d1&broad_keywords=😅&product_type=PROMOTED_ACCOUNT&objective=FOLLOWERS&currency=USD&campaign_daily_budget_amount_local_micro=1&bid_type=AUTO’ -t | python -mjson.tool

{
“errors”: [
{
“code”: “SERVICE_UNAVAILABLE”,
“message”: “Service unavailable due to request timeout; please try the request again later”
}
],
“request”: {
“params”: {}
}
}

twurl -H ‘ads-api.twitter.com’ ‘/1/accounts/18ce53uo3nm/reach_estimate/?locations=96683cc9126741d1&broad_keywords=cricket&product_type=PROMOTED_ACCOUNT&objective=FOLLOWERS&currency=USD&campaign_daily_budget_amount_local_micro=1&bid_type=AUTO’ -t | python -mjson.tool
{
“data”: {
“count”: {
“max”: 554,
“min”: 369
},
“engagements”: {
“max”: 2,
“min”: 1
},
“estimated_daily_spend_local_micro”: {
“max”: 1,
“min”: 0
},
“impressions”: {
“max”: 1040,
“min”: 693
},
“infinite_bid_count”: {
“max”: 631296,
“min”: 420864
}
},
“data_type”: “reach_estimate”,
“request”: {
“params”: {
“account_id”: “18ce53uo3nm”,
“bid_type”: “AUTO”,
“broad_keywords”: [
“cricket”
],
“campaign_daily_budget_amount_local_micro”: 1,
“currency”: “USD”,
“followers_of_users”: null,
“locations”: [
“96683cc9126741d1”
],
“objective”: “FOLLOWERS”,
“product_type”: “PROMOTED_ACCOUNT”
}
}
}

Thanks for your help!


#4

Hey @npurwar ,

Just wanted to follow up here to let you know that the endpoint has now been fixed and you should be able to use it, like so:

twurl_ads -A "Content-Type: application/json;charset=UTF-8" -X GET "/1/accounts/18ce54bgxky/targeting_suggestions?suggestion_type=KEYWORD&targeting_values=$(ruby -e 'print "\xF0\x9F\x91\x8D"')" | jq .
{
  "data_type": "targeting_suggestion",
  "data": [
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "☺"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👌 👌"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "🙌"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "🖐"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😉"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👊"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "✌"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😆"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍 👍 👍 👍"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👏 👏 👏"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍🏻 👍🏻"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👏 👏"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍🏻"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😄"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍🏼"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👏"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "🙋"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😀"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😃 😃"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍 👍"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👌"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "🖒"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "✌️"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😀 😀"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "instagram"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "😃"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "👍 👍 👍"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "chicken"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "🖒🖒"
    },
    {
      "suggestion_type": "KEYWORD",
      "suggestion_value": "#nomnom"
    }
  ],
  "request": {
    "params": {
      "suggestion_type": "KEYWORD",
      "targeting_values": [
        "👍"
      ],
      "account_id": "18ce54bgxky"
    }
  }
}

Thanks!


#5

Thanks!


#6

@npurwar: Please consider marking this thread as solved. Thanks!