MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

LinkedIn Post Request Batch Partial Update Ad Creatives Json Body Error #3327

Open ArbenKqiku opened 3 years ago

ArbenKqiku commented 3 years ago

Hi Guys,

First of all, thank you for the awesome LinkedIn API! Very easy to use. So, I am happy to contribute :)

On the following link: https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-creatives#batch-operations, in the section Batch Partial Update Ad Creatives, there is the following JSON body to include in the post request:

{ "entities": { { "47770196": { "patch": { "$set": { "status": "ACTIVE" } } } }, { "47770124": { "patch": { "$set": { "status": "ACTIVE" } } } } } }

However, it doesn't work, because there are some brackets that should not be there. Here is the JSON body that worked for me:

{ "entities": { "47770196": { "patch": { "$set": { "status": "ACTIVE" } } }, "47770124": { "patch": { "$set": { "status": "ACTIVE" } } } } }

I hope this helps!

Arben

welcome[bot] commented 3 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).