How can we update/remove the Audience List which we have already sent to Facebook/Google Ad Platform

Hi All,

I have a scenario in Paid Media Manager. Suppose today my campaign run has identified few eligible customers with some offers and updated this audience list to Facebook. Next day, some previous customers are no longer eligible for these offers. How will pega send this removal/Updated list to Facebook in order drop them from Audience List.

Thanks in advance.

This is exactly why we have UpdateMasterData dataset used in data flow as you queried in your previous post @https://collaborate.pega.com/question/how-update-masterdata-data-paidmediamaster-class#comment-781556 . These differences are calculated as part of delta calculation in data flows. Delta calculation is done using master table which was populated as part of first paid media sync process.

Thanks & Regards,

Matta

Hi MANNM1,

Thanks for the response provided. Yes, as you mentioned the updateMasterTable is being used to calculate the delta. Based on this, we can determine the action also. But, how do we communicate this to social media platform?

While we publish to social media networks, the logic is like this:

audienceSyncInformation = com.pega.mkt.paidmedia.sync.AudienceSyncInformation.AudienceSyncInformationBuilder
.anAudienceSyncInformation()
.withSyncType(syncType)
.withJobId(jobID)
.withClassification(classification)
.build();

com.pega.mkt.paidmedia.sync.AudienceSyncRequest audienceSyncRequest = (com.pega.mkt.paidmedia.sync.AudienceSyncRequest) queuePage.getObject(“Request”);

Where is this Request is coming from ? Is it forming by using this below function from AudienceCentricTriggerSync activity or somewhere else?

com.pega.mkt.paidmedia.AudienceCentricFlowBatchUtility audienceCentricFlowBatchUtility = new com.pega.mkt.paidmedia.AudienceCentricFlowBatchUtility(tools, stagingTableName, audienceTableName);
org.apache.commons.lang3.tuple.ImmutablePair<String, Boolean> pair = audienceCentricFlowBatchUtility.processAudienceByAction();

And what exactly the request look a like? What information will be sent to social media platform? How do we check that information? And how can we know that which parameters we need to set before audience sync for different platforms? Could you please let me know if you have more information on this.

Thanks in advance,

Krishna Chaitanya Paruchuri

Yes, “Request” object is formed by processAudienceByAction java method in java layer which in turn calls Data-paidMediaSyncStaging.CreateAudienceSyncRequest activity. Request is an object of com.pega.mkt.paidmedia.sync.AudienceSyncRequest class which contains list of com.pega.mkt.paidmedia.AudienceAction objects. Please find the attachment for stratucture of AudienceAction.

As part of step 7 itself, there is a call to com.pega.mkt.paidmedia.sync.AudienceSyncService.startSync java method which is responsible for network calls to push audience to respective Ad networks. Then com.pega.mkt.paidmedia.sync.AudienceResponseProcessor.processAudienceResponse will update master table with the responses of the network calls.

Thanks & Regards,

Matta

Thank you @Mannm1 for the response.

We have observed the payload for facebook and Google like below :

Sample Facebook customer payload:

[{“customerId":"10000002”,“audienceType”:“CUSTOM”,“payload”:“["9bc6572191a52c96eac14b09376fb161b84a7725865a1704485431fd6b2f74aa","10000002","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"]”}]

Sample Google customer payload:

[{“audienceType”:“CUSTOM”,“memberType”:“EMAIL”,“values”:[“38742b148258b010c85e3609bc6faf4005c62d7657d917e17271edd73d50d5b4”],“customerId":"10000001”},
{“audienceType”:“CUSTOM”,“memberType”:“PHONE”,“values”:[“59fccfb3c1482df1c4533afe1df343b31b78fd3cd169f4e875d806694bd57705”],“customerId":"10000001”}]

These payloads will be part of audienceActionList.

I have few queries regarding the customer ID :

a) Do we need pass the customer ID to the social media platform ?

b) What is the use of this customer ID at social media platform?

c) Can we avoid passing this customer ID to social media platform?

Could you please let me know your thoughts on this.

Thanks,

KC

Hi,

The payload you shared above will not be pushed as it is to networks. CustomerID is used for internal purposes to send response from networks back to master table.

Thanks & Regards,

Matta