Campaign doesn't start until resuming it through ads.twitter.com


#1

Hi all,

I’m creating campaigns through the Twitter Ads API, everything seems to work in sandbox, but when I create it in the production environment (ads-api.twitter.com) the campaign is not servable because is “paused by the advertiser”, which seems strange because I set it to run at the moment of creation and all the data is correct (I guess).

This is what I do, first I create the campaign, then I associate a line item with it, and at last I set up the promoted tweets and tailored audiences.

POST accounts/:account_id/campaigns
{ params:
      { name: 'Test',
        start_time: '2015-08-03T17:10:15Z',
        daily_budget_amount_local_micro: 100000000,
        funding_instrument_id: 'xxxx',
        total_budget_amount_local_micro: 100000000,
        paused: false,
        account_id: 'gq0s6e' } }

POST accounts/:account_id/line_items
   { params:
      { placements: [Object],
        automatically_select_bid: true,
        product_type: 'PROMOTED_TWEETS',
        total_budget_amount_local_micro: 100000000,
        objective: 'TWEET_ENGAGEMENTS',
        paused: false,
        account_id: 'gq0s6e',
        campaign_id: 'er3i' } }

I saw this post that could be related but not sure because the Twitter dev team already checked it:

As I said, if I create the campaign with the same data in sandbox, it appears to be servable, but when I do it on production, the campaign is not servable.

Not sure if I’m doing something wrong, could someone point me what’s happening with this?

Thanks in advance.


#2

@k4rliky This definitely isn’t the intended behavior. However, I’m not able to reproduce the issue using the steps you provided:

Campaign

twurl -H ads-api.twitter.com "/0/accounts/5gvk9h/campaigns?name=black_1438642611&start_time=2015-08-03T22:56:51Z&daily_budget_amount_local_micro=100000000&total_budget_amount_local_micro=100000000&paused=false&funding_instrument_id=lfmi"

{
  "data_type": "campaign",
  "data": {
    "name": "black_1438641838",
    "start_time": "2015-08-03T22:43:58Z",
    "reasons_not_servable": [
      "INCOMPLETE"
    ],
    "servable": false,
    "daily_budget_amount_local_micro": 100000000,
    "end_time": null,
    "funding_instrument_id": "lfmi",
    "standard_delivery": true,
    "total_budget_amount_local_micro": 100000000,
    "id": "2umfz",
    "paused": false,
    "account_id": "5gvk9h",
    "currency": "USD",
    "created_at": "2015-08-03T22:43:58Z",
    "updated_at": "2015-08-03T22:43:58Z",
    "deleted": false
  },
  "request": {
    "params": {
      "name": "black_1438641838",
      "start_time": "2015-08-03T22:43:58Z",
      "daily_budget_amount_local_micro": 100000000,
      "funding_instrument_id": "lfmi",
      "total_budget_amount_local_micro": 100000000,
      "paused": false,
      "account_id": "5gvk9h"
    }
  }
}

Line Item

twurl -H ads-api.twitter.com "/0/accounts/5gvk9h/line_items?campaign_id=2umfz&objective=TWEET_ENGAGEMENTS&product_type=PROMOTED_TWEETS&placements=ALL_ON_TWITTER&total_budget_amount_local_micro=100000000&paused=false&bid_amount_local_micro=100000000"

{
  "data_type": "line_item",
  "data": {
    "placement_type": "PROMOTED_TWEETS",
    "bid_type": "MAX",
    "name": "Untitled",
    "placements": [
      "ALL_ON_TWITTER"
    ],
    "bid_amount_local_micro": 100000000,
    "automatically_select_bid": false,
    "advertiser_domain": null,
    "primary_web_event_tag": null,
    "charge_by": "ENGAGEMENT",
    "product_type": "PROMOTED_TWEETS",
    "bid_unit": "ENGAGEMENT",
    "total_budget_amount_local_micro": 100000000,
    "objective": "TWEET_ENGAGEMENTS",
    "id": "2w4r6",
    "paused": false,
    "account_id": "5gvk9h",
    "optimization": "DEFAULT",
    "categories": [],
    "currency": "USD",
    "created_at": "2015-08-03T22:50:12Z",
    "updated_at": "2015-08-03T22:50:12Z",
    "include_sentiment": "POSITIVE_ONLY",
    "campaign_id": "2umfz",
    "deleted": false
  },
  "request": {
    "params": {
      "placements": [
        "ALL_ON_TWITTER"
      ],
      "bid_amount_local_micro": 100000000,
      "product_type": "PROMOTED_TWEETS",
      "total_budget_amount_local_micro": 100000000,
      "objective": "TWEET_ENGAGEMENTS",
      "paused": false,
      "account_id": "5gvk9h",
      "campaign_id": "2umfz"
    }
  }
}

Check Campaign Again

twurl -H ads-api.twitter.com "/0/accounts/5gvk9h/campaigns/2umfz"

    {
  "data_type": "campaign",
  "data": {
    "name": "black_1438641838",
    "start_time": "2015-08-03T22:43:58Z",
    "reasons_not_servable": [],
    "servable": true,
    "daily_budget_amount_local_micro": 100000000,
    "end_time": null,
    "funding_instrument_id": "lfmi",
    "standard_delivery": true,
    "total_budget_amount_local_micro": 100000000,
    "id": "2umfz",
    "paused": false,
    "account_id": "5gvk9h",
    "currency": "USD",
    "created_at": "2015-08-03T22:43:58Z",
    "updated_at": "2015-08-03T22:43:58Z",
    "deleted": false
  },
  "request": {
    "params": {
      "campaign_id": "2umfz",
      "with_deleted": true,
      "account_id": "5gvk9h"
    }
  }
}