Microsoft-AdCenter

An interface which abstracts Microsoft adCenter API.



SYNOPSIS

    use Microsoft::AdCenter::CampaignManagementService;
    use Microsoft::AdCenter::CampaignManagementService::Bid;
    use Microsoft::AdCenter::CampaignManagementService::Keyword;

    # Create the service client
    my $campaign_mgmt_service = Microsoft::AdCenter::CampaignManagementService->new(
        ApplicationToken  => "your_application_token",
        CustomerAccountId => "your_customer_account_id",
        CustomerId        => "your_customer_id",
        DeveloperToken    => "your_developer_token",
        Password          => "your_password",
        UserName          => "your_user_name"
    );

    # Create a Keyword object
    my $keyword = Microsoft::AdCenter::CampaignManagementService::Keyword->new
        ->Text("some text")
        ->BroadMatchBid(Microsoft::AdCenter::CampaignManagementService::Bid->new->Amount(0.1))
        ->ExactMatchBid(Microsoft::AdCenter::CampaignManagementService::Bid->new->Amount(0.1));

    # Call AddKeywords
    my $response = $campaign_mgmt_service->AddKeywords(
        AdGroupId => "",
        Keywords => [$keyword]
    );

    # Check the response
    my $keyword_ids = $response->KeywordIds;
    ...



INSTALLATION

To install this module, run the following commands:

    perl Makefile.PL
    make
    make test
    make install



SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Microsoft::AdCenter

You can also look for information at:

    RT, CPAN's request tracker
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Microsoft-AdCenter

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Microsoft-AdCenter

    CPAN Ratings
        http://cpanratings.perl.org/d/Microsoft-AdCenter

    Search CPAN
        http://search.cpan.org/dist/Microsoft-AdCenter/



LICENSE AND COPYRIGHT

Copyright (C) 2010 Xerxes Tsang

This program is free software; you can redistribute it and/or modify it
under the terms of Perl Artistic License.

See http://dev.perl.org/licenses/ for more information.

