I am working on creating campaigns using facebook marketing api with java code. I am successfully created campaign and adset and targeting stuff but when i created creative it shows me this error
com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_subcode":1885183,"is_transient":false,"error_user_title":"Ads creative post was created by an app that is in development mode","error_user_msg":"Ads creative post was created by an app that is in development mode. It must be in public to create this ad.","fbtrace_id":"DIS5OUWvh0Y"}} at com.facebook.ads.sdk.APIRequest.readResponse(APIRequest.java:304) at com.facebook.ads.sdk.APIRequest.access$100(APIRequest.java:53)
After getting this error i make my app public but now i am unable to create any thing like campaign or ad set and this time api show me this error
com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"(#294) Managing advertisements requires an access token with the extended permission for ads_management","type":"OAuthException","code":294,"fbtrace_id":"CmN3BD1aQlQ"}} at com.facebook.ads.sdk.APIRequest.readResponse(APIRequest.java:304) at com.facebook.ads.sdk.APIRequest.access$100(APIRequest.java:53)
I am stuck between these both exceptions. Need help on it.