Yahoo! Search Marketing

YSM Yahoo! Group Discussions

Re: Reports Stuck in Pending
Mon, 08 Feb 2010 18:53:43 GMT

Reports Stuck in Pending
Mon, 08 Feb 2010 16:34:31 GMT

Re: SANDBOX LICENSE
Mon, 07 Dec 2009 20:45:00 GMT

SANDBOX LICENSE
Tue, 01 Dec 2009 18:09:58 GMT

Systems Maintenance on 10/14
Wed, 14 Oct 2009 22:41:52 GMT

View All

YSM Blog Posts

Yahoo! Network Distribution and Import Campaigns Webinar
Wed, 03 Feb 2010 21:22:26 +0000

Ad News and Views from Around the Web
Wed, 03 Feb 2010 20:49:00 +0000

Don’t Set it and Forget it
Mon, 01 Feb 2010 22:04:51 +0000

Ad News and Views from Around the Web
Sat, 30 Jan 2010 01:38:53 +0000

You’re in Control
Wed, 20 Jan 2010 00:05:37 +0000

View All

Sample Code: Perl Client Application

To access Enterprise Web Services (EWS) using the sample 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 following Perl modules, which are used in the sample code:

  • Carp
  • DateTime
  • SOAP::Lite
  • HTML::Entities
  • Cache::FileCache
  • DateTime::Format::W3CDTF
  • Config::Properties

Carp is in Perl Core, so you should have it if you have a working Perl installation. All other modules above are available from CPAN. See http://www.cpan.org.

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

Source Code

For perl, the sample code includes API specific code and use cases. While API specific sample code helps you understand the usage of individual API, the use cases demonstrate a workflow or typical system usage.

Please refer to the Build and Run section below to know how to use these sample codes

API Specific Sample Code

The following sample codes are available for EWS APIs :

Use Cases / Workflows

The following use cases are available:

  • addTargetsToAdGroup.pl - Perl client application demonstrating the use of targeting APIs using the generic and extensible TargetingAttribute design.

Download All Source Files

You can download all the above sources : .zip, .tar.gz, .tar.bz2.

Build and Run

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

1. Download anyone of the above mentioned perl file say addCampaign.pl and sample data properties files (sample_data_*.properties), and save them to your local directory.

2. Edit the downloaded file(here addCampaign.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 addCampaign.pl

4. Run the script on Windows using this command:

prompt> perl.exe addCampaign.pl

Known Issues

There are no known issues at this time.