Monday, November 27, 2017

Create Promoted Links API Error

Hello,

we are trying to use your API to automate the process of content uploading but we are running into an error.

It looks like the API only accepts image urls hosted on outbrain, and not possible to pass external images.

Here is a complete example of our usage:

API endpoint that we are using:  https://api.outbrain.com/amplify/v0.1/campaigns/00d3e03e2a826f7aa5b4d3946bb0c763c7/multiplePromotedLinks

(we also tried single promoted links creation, same result)

Reques that we are sending:

[
  {
    "url": "<our campaign url here>",
    "enabled": false,
    "text": "test2",
    "imageUrl": "http://cdn1.medicalnewstoday.com/content/images/headlines/317/317122/junk-food.jpg",
    "cpc": 0.2
  }
]


The error we are getting every time:

abame [11:08 AM] 
[
    {
        "operationStatus": {
            "status": "Failure"
        },
        "url": "<campaign url that we used>"
    }
]


It works when we try to create a new content and passing an image url that already exists on outbrain. 

For example: https://images.outbrain.com/Imaginarium/api/uuid/b3e030539b3dc6dc9cb9b302b1215ecab28294f68f85a0f2aaa71bd2c615348e/150/150/1.0


I wanted to know if we are doing something wrong or the API is supposed to work only with image urls from outbrain (which is very limiting)?

Thanks for your help.

Best

Ervin

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment