OK, so sometimes it works and sometimes I get the error as described above as well as one other error it turns out.
Here’s are my request parameters (everything else should be fine since I’m not getting any auth errors:
array (
‘campaign_id’ => ‘3cozb’,
‘account_id’ => ‘xxxxxxx’,
‘placements’ => ‘TWITTER_SEARCH,TWITTER_PROFILE’,
‘product_type’ => ‘PROMOTED_TWEETS’,
‘bid_amount_local_micro’ => 1000000,
‘automatically_select_bid’ => 0,
‘name’ => ‘e213e’,
)
Here’s the response:
HTTP/1.1 400 Bad Request
content-disposition: attachment; filename=json.json
content-length: 523
content-type: application/json;charset=utf-8
date: Wed, 21 Oct 2015 13:15:23 GMT
server: tsa_b
set-cookie: guest_id=v1%3A144543332369095162; Domain=.twitter.com; Path=/; Expires=Fri, 20-Oct-2017 13:15:23 UTC
strict-transport-security: max-age=631138519
x-access-level: read-write-directmessages
x-connection-hash: 6c516c71730d63253ff709822bdb78f0
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-rate-limit-limit: 300
x-rate-limit-remaining: 299
x-rate-limit-reset: 1445433370
x-response-time: 160
x-runtime: 0.150418
x-transaction: a2bc3cc3ca9523e9
x-tsa-request-body-time: 0
x-xss-protection: 1; mode=block
{“errors”:[{“code”:“INVALID”,“message”:“non-nullable field placement_type is not set”,“attribute”:“placement_type”},{“code”:“INVALID”,“message”:“LineItem PromotedProductType PROMOTED_TWEETS is not compatible with placements SEARCH_RESULTS,PROFILES”,“attribute”:“promoted_product_type”}],“request”:{“params”:{“name”:“e213e”,“placements”:[“TWITTER_SEARCH”,“TWITTER_PROFILE”],“bid_amount_local_micro”:1000000,“automatically_select_bid”:false,“product_type”:“PROMOTED_TWEETS”,“account_id”:“xxxxx”,“campaign_id”:“3cozb”}}}