Open thecvch opened 3 years ago
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Which SDK version are you using?
11.0.0
What's the issue?
unable to create ad creative in sandbox, using the same credential that can create campaign and adset
Steps/Sample code to reproduce the issue
`public static AdCreative createAdCreative(AdAccount account, APIContext context) throws APIException {
AdImage adImage = new AdAccount(account.getId(), context).createAdImage() .addUploadFile("filename", new File("")) .execute();
AdCreative adCreative = account.createAdCreative() .setName("Sample Creative") .setObjectStorySpec( new AdCreativeObjectStorySpec() .setFieldLinkData( new AdCreativeLinkData() .setFieldImageHash(adImage.getFieldHash()) .setFieldLink("https://www.google.com/") .setFieldMessage("try it out") ) .setFieldPageId("")
)
.execute();
}
AdCreative adCreative = createAdCreative(account, context);`
Observed Results:
com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_subcode":1885183,"is_transient":false,"error_user_title":"\u0e42\u0e1e\u0e2a\u0e15\u0e4c\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e06\u0e29\u0e13\u0e32\u0e16\u0e39\u0e01\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22\u0e41\u0e2d\u0e1e\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e1e\u0e31\u0e12\u0e19\u0e32","error_user_msg":"\u0e42\u0e1e\u0e2a\u0e15\u0e4c\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e06\u0e29\u0e13\u0e32\u0e16\u0e39\u0e01\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22\u0e41\u0e2d\u0e1e\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e1e\u0e31\u0e12\u0e19\u0e32 \u0e42\u0e14\u0e22\u0e41\u0e2d\u0e1e\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e06\u0e29\u0e13\u0e32\u0e19\u0e35\u0e49","fbtrace_id":"ANWtq3TqH5El9-Ot2HQyqc2"}} at com.facebook.ads.sdk.APIRequest.readResponse(APIRequest.java:309) at com.facebook.ads.sdk.APIRequest.access$100(APIRequest.java:52) at com.facebook.ads.sdk.APIRequest$DefaultRequestExecutor.sendPost(APIRequest.java:588) at com.facebook.ads.sdk.APIRequest$DefaultRequestExecutor.execute(APIRequest.java:520) at com.facebook.ads.sdk.APIRequest.executeInternal(APIRequest.java:197) at com.facebook.ads.sdk.AdAccount$APIRequestCreateAdCreative.execute(AdAccount.java:2831) at com.facebook.ads.sdk.AdAccount$APIRequestCreateAdCreative.execute(AdAccount.java:2826)
Expected Results:
It should successfully create ad creative.