Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adobe Target + IMS integration "Create offer request failed!"

Issue

15.08.2021 16:57:24.511 *ERROR* [[0:0:0:0:0:0:0:1] [1629071844241] POST /libs/cq/experience-fragments/content/commons/targetexporter.html HTTP/1.1] com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter Create offer request failed!
API request failed
com.day.cq.analytics.testandtarget.TestandtargetException: Create offer request failed!
	at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.create(RestApiAdapter.java:115)
	at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.createOffer(RestApiAdapter.java:98)
	at com.day.cq.analytics.testandtarget.impl.TestandtargetServiceImpl.createHTMLOffer(TestandtargetServiceImpl.java:65)
	at com.day.cq.analytics.testandtarget.impl.TestandtargetCampaignMediatorImpl.syncOffer(TestandtargetCampaignMediatorImpl.java:537)
	at com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter.exportVariation(AbstractExperienceFragmentExporter.java:115)
	at com.adobe.cq.xf.impl.adobetarget.exporter.HtmlExperienceFragmentsExporter.exportVariation(HtmlExperienceFragmentsExporter.java:35)
	at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportInFormat(ExperienceFragmentsTargetMediatorImpl.java:187)
	at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportAll(ExperienceFragmentsTargetMediatorImpl.java:149)
	at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.export(ExperienceFragmentsTargetMediatorImpl.java:71)
	at com.adobe.cq.xf.impl.servlet.ExportTargetOffer.doPost(ExportTargetOffer.java:78)
...
Caused by: com.day.cq.analytics.testandtarget.impl.service.WebServiceException: API request failed
	at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:613)
	at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:567)
	at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.createOffer(WebServiceImpl.java:268)
	at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.create(RestApiAdapter.java:110)
	... 143 common frames omitted
Caused by: com.day.cq.analytics.testandtarget.impl.service.WebServiceException: Unexpected response status code [403] for request [https://mc.adobe.io/aemsupport/target/offers/content?includeMarketingCloudMetadata=true].
{"httpStatus":403,"requestId":"XdG3FkybllHyw2mpOzRzACSvvps44IVt","requestTime":"2021-08-15T23:57:24.466475Z","errors":[{"errorCode":"Forbidden.Resource","message":"Access denied. To perform this operation, all of the following privileges are required \"[editor]\".","meta":{}}]}
	at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:610)
	... 146 common frames omitted

Solution

  1. Make sure in console.adobe.io in the project that "Default Workspace" is included in the Adobe Target APIs product profiles.
  2. Follow the steps here to enable the integration as (note instead of "Integrations" the UI now says "API Credentials"): https://experienceleague.adobe.com/docs/experience-manager-65/administering/integration/integration-ims-adobe-io.html?lang=en#assigning-privileges-to-the-integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment