Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.
SOLVED

calling saveCampaign/createCampaign API

Avatar

Level 5

I am trying to access saveCampaign API for testing purpose.

I followed the instructions provided, formed URL to create a plain campaign with URL  :


 https://testandtarget.omniture.com/api?client=user&email=user1@acme.com//testandtarget.omniture.com/api?client=user&email=user1@acme.com
&password=pword&version=1&operation=saveCampaign&thirdPartyId=extID501&version=1&campaign=<campaign><id>NNNN</id><name>Campaign Name</name></campaign>

ofcourse, by editing proper email,clientID and password.

I get below mentioned error message :

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error>
<message>A generic Exception has occurred.</message>
<code>500</code>
</error>

 

However the operation listCampaign works fine and returns a list of campaigns.

It would be a great help if someone could help.

 

thanks in advance.

 

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi,

 

I'd request you to refer to the Demo Campaign XML example as mentioned on https://marketing.adobe.com/developer/documentation/test-target/r-campaign-create page. Can you try creating a new campaign with at least one offer as mentioned in the example and let us know the results?

 

Thanks

Nikhil

View solution in original post

3 Replies

Avatar

Correct answer by
Level 8

Hi,

 

I'd request you to refer to the Demo Campaign XML example as mentioned on https://marketing.adobe.com/developer/documentation/test-target/r-campaign-create page. Can you try creating a new campaign with at least one offer as mentioned in the example and let us know the results?

 

Thanks

Nikhil

Avatar

Level 5

Could create the campaign now.

had to create offer first through createOffer api.

Thanks a lot for your help Nikhil.

Avatar

Level 8

Great to hear this was resolved and thanks for letting us know.

 

Regards

Nikhil