Passing custom parameters to an e-Marketing Spot Atom feed
If the default parameters supported for Web service feed URLs do not meet your needs, you can define custom parameters. To do so, you must extend the Java class that handles Atom feeds for the MarketingSpotData noun. By customizing the business logic in the class, you can pass custom parameter values directly to the marketing services.
Before you begin
URL structure for Web service feeds
To understand the framework that supports Web service feeds, see:
About this task
Example
You want to customize an e-Marketing Spot feed so that it displays different content depending on a certain parameter and value in the URL. The parameter, loyaltyId, indicates the customer's loyalty program level. After the customization is in place, you want to create personalized Web activities to recommend products to customers based on their loyalty program level. For example:
Loyalty program level | Loyalty program values | Recommended product |
---|---|---|
Gold (Big Spender) | Start with 100- |
Executive Six-Drawer Desk |
Silver (Bargain Hunter) | Start with 200- |
Craft Table |
Not a loyalty member | No value | Student's Desk |
To support this custom parameter, you must extend the MarketingSpotData
Java
class that handles Atom feeds for e-Marketing Spots so that the class
passes the loyaltyId URL parameter to the marketing
services. The Web activity can then display the correct recommended
product based on the value of the loyaltyId URL
parameter.