Updating/Copying Campaign

SOLVED
Occasional Advisor

Re: Updating/Copying Campaign

Figured out what it was. There was an error in the php wrapper file in the campaignscollection class.

 

these two lines need to be modified in the createCampaignStruct function

 

        $campaign['vawp_link_text'] = ($parsedReturn->content->Campaign->ViewAsWebPageLinkText);
            $campaign['vawp_text'] = ($parsedReturn->content->Campaign->ViewAsWebPageText);

 

to        

$campaign['vawp_link_text'] = ($parsedReturn->content->Campaign->ViewAsWebpageLinkText);
            $campaign['vawp_text'] = ($parsedReturn->content->Campaign->ViewAsWebpageText);

 

(the capital P in WebPage is incorrect).

 

I also wrote another function that crates the xml as a raw string rather than using the simple xml library which simply will not let you encode html into it if anybody wants it.

Highlighted
CTCT Employee

Re: Updating/Copying Campaign

Hello,

 

Thank you for bringing this to our attention.  I am going to fix this typo and reupload the wrapper.  If you have any questions please let me know.

 

Regards,

Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

View API documentation, code samples, get your API key.