Overview
Effort Key Service is a PMC service for various promotion keys that are used by Audience Marketing to sell subscriptions. This service is created and hosted by PMC.
We are building an admin UI in Laravel for managing( creating, updating ) effort key data. Audience Marketing would upload these effort keys and the details into the Laravel application and these keys would dictate the term for subscription, price, discounts and other information related to the subscriptions being sold.
This plugin will fetch the details from the Effort Key Service and pass it on to the brand for further implementation.
There is only GET method supported by this plugin since adding or updating Effort Key from this plugin is not advised.
How it works
Please use the following function which fetches data for effort key/keys :
The below call gets details about single effort key.
\PMC\Effort_Key\Api::get_instance()->get_data( 'WW4111193B7Q' )
The below call get details for multiple effort keys.
\PMC\Effort_Key\Api::get_instance()->get_data( 'WW4111193B7Q,WWR111193123,WW3111193786' )
e.g Sample JSON output for effort key WW4111193B7Q returned from the service will be in the below format :
"value": "WW4111193B7Q",
"details": {
"brand": {
"code": "WW",
"expansion": "WW"
},
"product": {
"code": "4",
"expansion": "COMBO"
},
"source": {
"code": "111",
"expansion": "Site Ads"
},
"campaign": {
"code": "193",
"expansion": "March 2019"
},
"uniqueness": {
"code": "B7Q",
"expansion": "Alphanumeric value that makes the effort key unique compared to all other effort keys in the database"
}
},
"ratePlanId": "2c92c0f869330b7801693568f1a85571",
"product": "COMBO",
"brand": "WW",
"sourceGroup": "Online",
"campaignName": "1Q19O",
"campaignDescription": "OFFER TERM/VAL: 26/52.00",
"deployDate": "2019-03-26T00:00:00.000+0000",
"offerExpression": "string",
"source": "Site Ads",
"device": "Desktop, Native",
"digitalPlacement": "Subs Landing Page",
"promoQty": 0,
"testPanel": "string",
"price": 52,
"priceDescription": "26 Weeks, discount",
"term": 52,
"freeTrialPeriod": "string",
"premiumOffer": "string",
"premiumId": "string",
"premiumDescription": "string",
"listId": "string",
"listDescription": "string",
"aamStatusIndicator": "1A Home Delivery Paid"
}