Yahoo! Search Marketing

YSM Yahoo! Group Discussions

View All

YSM Blog Posts

Enjoy the Silence (While You Can)
Tue, 24 Nov 2009 19:15:31 +0000

Breaking News from Yahoo! News
Fri, 20 Nov 2009 00:47:21 +0000

You’re Invited…
Tue, 17 Nov 2009 20:03:16 +0000

Anti-Phishing Reminders
Mon, 16 Nov 2009 20:56:48 +0000

One Shining Moment
Thu, 12 Nov 2009 18:28:28 +0000

View All

Sample Code: Yahoo::Marketing Perl Client Application

To access Enterprise Web Services (EWS) using the sample Yahoo::Marketing Perl client application, follow these instructions.

Environment

To set up your Perl environment, perform these tasks:

1. Install Perl 5.8.1 or higher.

2. Install the most recent version of Yahoo::Marketing Perl module from CPAN, and all of its dependencies. If you use the automated CPAN installation process, the dependencies should install automatically for you.

Note: If you plan to use two versions of the Marketing API simultaneously, for example, Version 1.0.0 and Version 2.0.0, you need to install two versions of the Yahoo::Marketing Perl module, and put one of the versions in a non-standard location, for example ~/perl/.

Contact your system administrator if you need help setting up your Perl environment.

Source Code and Sample Data

For the Perl SDK, the source code and sample data includes:

Build and Run

To build and run the Perl client application run through the following steps:

1. Download yahoo_marketing_ews_client.pl and sample data properties files (sample_data_*.properties), and save them to your local directory.

2. Edit yahoo_marketing_ews_client.pl to contain your EWS credentials, which are defined as constants near the top of the file:

  • EWS_USERNAME
  • EWS_PASSWORD
  • EWS_MASTER_ACCOUNT_ID
  • EWS_ACCOUNT_ID
  • EWS_LICENSE
  • MARKET
  • LOCALE

3. Run the script on Linux, Mac OS X, FreeBSD, or other Unix OS using this command:

prompt> perl yahoo_marketing_ews_client.pl

4. Run the script on Windows using this command:

prompt> perl.exe yahoo_marketing_ews_client.pl

Known Issues

There are no known issues at this time.