In order to extend the ad server interface functionality, we've added the fields keys and its values in the objects ad spec, ad type and placementAd Spec, Ad Type and Placement. Due to this some, some existing fields are discontinued (but are still transmitted to the ad server).
Key and Values - Implementation Steps
The following fields are discontinued:
Object | Field |
---|---|
Ad Spec | ADvendio_Keywords_Key_Values_c |
Ad Type | ADvendio_Keyvalue_Keyword_c |
Placement | ADvendio_AdServer_Keywords_Key_Values_c |
If you want to use the new fields, follow these steps: Install ADvendio Version 2.65 (Winter '16) and perform the following commands (copy & paste) via the developer console.
Ad Spec
Info | ||
---|---|---|
| ||
List<ADvendio__Ad_Specs__c> adSpecForUpdate = [SELECT id, ADvendio__Keywords_Key_Values__c, ADvendio__KeyValues__c FROM ADvendio__Ad_Specs__c WHERE ADvendio__Keywords_Key_Values__c != null]; for(ADvendio__Ad_Specs__c adSpec : adSpecForUpdate ){ adSpec.ADvendio__KeyValues__c = adSpec.ADvendio__Keywords_Key_Values__c; adSpec.ADvendio__Keywords_Key_Values__c = null; } update adSpecForUpdate; |
Ad Type
Info | ||
---|---|---|
| ||
List<ADvendio__Ad_Type__c> adTypeForUpdate = [SELECT id, ADvendio__Keyvalue_Keyword__c, ADvendio__KeyValues__c from ADvendio__Ad_Type__c where ADvendio__Keyvalue_Keyword__c != null]; for(ADvendio__Ad_Type__c adType : adTypeForUpdate ){ adType.ADvendio__KeyValues__c = adType.ADvendio__Keyvalue_Keyword__c; adType.ADvendio__Keyvalue_Keyword__c = null; } update adTypeForUpdate; |
Placement
Info | ||
---|---|---|
| ||
List<ADvendio__Placement__c> placementsForUpdate = [SELECT id, ADvendio__AdServer_Keywords_Key_Values__c, ADvendio__KeyValues__c from ADvendio__Placement__c where ADvendio__AdServer_Keywords_Key_Values__c != null]; for(ADvendio__Placement__c placement : placementsForUpdate ){ placement.ADvendio__KeyValues__c = placement.ADvendio__AdServer_Keywords_Key_Values__c; placement.ADvendio__AdServer_Keywords_Key_Values__c = null; } update placementsForUpdate; |