Hi Shawn,
It seems that you're trying to retrieve native creatives based on a creative template id. If yes, you will need to do some post-processing in order to filter the results via a specific creativeTemplateId. e.g. In Java, you may use the code below as reference to filter creatives via creativeTemplateId. Once you have the list of IDs, you may pass these to an update operation to select the creatives that you want to update.
long templateId = xxxxxxL;
do {
// Get creatives by statement.
CreativePage page = creativeService.getCreativesByStatement(statementBuilder.toStatement());
if (page.getResults() != null) {
totalResultSetSize = page.getTotalResultSetSize();
int i = page.getStartIndex();
for (Creative creative : page.getResults()) {
if(creative instanceof TemplateCreative) {
TemplateCreative tempCreative = (TemplateCreative) creative;
if(tempCreative.getCreativeTemplateId() == templateId) {
System.out.printf("%d) Creative with ID %d and name '%s' was found.%n", i++, creative.getId(), creative.getName());
}
}
}
}
Let me know if you have any further clarifications. If this is not what you are looking for, kindly provide more information so I can better investigate the issue.
Regards,
|
||||||
Hi Shawn,
Let me double check with the rest of our team if there's a faster way to achieve what you're trying to do. Rest assured that one of my colleagues will reach out to you as soon as we have more information.
|
||||||
SHAWN XIA Advertising Technology Specialist | Data & Ad Tech M: 027 285 7301 E: shaw...@nzme.co.nz |
|