Ads Campaign Api



I followed following steps:

  1. I used " " api to get report Id.
  2. then. I used “”, to get the report url, but still this api response is giving me “url” as null status as null.

When doing this through postman it works fine , but when using it through node JS, step 2 api endpoint is giving me response url:“null” and “status”:“processing”.

Can anyone help me with this?
Thanks in advance.!



This simply means you have to “wait” until the job has completed. As this endpoint is “Asynchronous”, you need to consider having some sleep&retry logic. Then eventually, you will get an actual URL and "status": "SUCCESS" as described here.