Technical Team - I am getting this an error on Add Campaign "Request body contains malformed JSON"

215 views
Skip to first unread message

Mustafa Mughal

unread,
Mar 6, 2017, 2:56:31 AM3/6/17
to Outbrain-AmplifyApi
JSON I am sending - This was working very well not it's giving "Request body contains malformed JSON"
----------------------------------------
{"name":"Test Campaign 2017-03-06","budgetId":"006932690161886c98a8e5e629b1270580","enabled":true,"cpc":0.032,"targeting":{"platform":["DESKTOP","MOBILE"],"locations":[]},"feeds":null,"suffixTrackingCode":"utm_source=Outbrain&utm_medium=Discovery&utm_campaign=Test%20Campaign%202017-03-06&utm_content={{ad_id}}&utm_term={{origsrcid}}","cpcPerAdEnabled":true}


Response Header
-------------------------------------
HTTP/1.1 400 Bad Request
AMPLIFY-REQUEST-ID: c0b5af85-3736-4410-b924-9b9bda2e005e
Access-Control-Allow-Origin: *
Content-Type: application/json;charset=UTF-8
Content-Length: 50
Strict-Transport-Security: max-age=31536000
X-Cnection: close
Via: 1.1 fra1-10
Set-Cookie: TS011ea5a3=01d60216a77b2f944fe2c2553dbde8a99979272bccdb4c1c669d4d84d1abcd4a5269282268; Path=/; Secure; HTTPOnly

Response Body
--------------------------------------
{"message":"Request body contains malformed JSON"}

Nitsan Friedrich

unread,
Mar 6, 2017, 4:17:55 AM3/6/17
to Mustafa Mughal, Outbrain-AmplifyApi
Hi Mustafa,

We are not supporting the "cpcPerAdEnabled" property in a create campaign request (currently it can only be provided along with an update request).

Please let us know if you need any further assistance,


--
You received this message because you are subscribed to the Google Groups "Outbrain-AmplifyApi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to outbrain-amplifyapi+unsub...@googlegroups.com.
To post to this group, send email to outbrain-amplifyapi@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/outbrain-amplifyapi/43fcdfd2-31a8-4013-afaa-d08edc600162%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.

This email and any attachments hereto may be confidential or privileged.  If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person. Thanks.
Reply all
Reply to author
Forward
0 new messages