Remove existing LineItemCreativeAssociation and replace with a new one

353 views
Skip to first unread message

Mark Brady

unread,
May 11, 2015, 11:03:47 AM5/11/15
to google-doubleclick...@googlegroups.com
Hi Team

I have an existing lineitem which is associated with two creatives. I want to be able to re-associate that lineitem with two different creatives. I have tried just creating a new association however the two new creatives are of a different size (the lineitem was previously archived and I am resurrecting it with new name and all settings including the new creatives.

When I try to create a new association I get a SIZE_NOT_ALLOWED error for obvious reasons. The existing association are for creatives of a different size than the lineitem.

I figure the best way to do this is to deactivate those associations but am having difficulty in doing this using the updateLineItemCreativeAssociationsByStatement.

My questions are as follows:

1: What is the most efficient way of removing the existing associations and updating to a new association?
2: Should I deactivate the original ones first then create a new one for that lineitem?
3: As there are no association 'id' returned when using 'getLineItemCreativeAssociationsByStatement', what data (keys - values) are required to send into the update action in order to make this work?

Any assitance would be most appreciated.

Cheers
Mark

Sasidhar (DFP API Team)

unread,
May 11, 2015, 5:08:53 PM5/11/15
to google-doubleclick...@googlegroups.com
Hi Mark,

1. The best way is to deactivate the existing LICAs and then create new ones. To do this you can use the DeactivateLineItemCreativeAssociations action.
2. Yes, you can deactivate the original ones and create the new ones.
3. LICAs are uniquely identified by the combination of  the line item ID and the creative ID. 

You can see a deactivate and update examples in each of our client libraries:

Regards,
Sasidhar, DFP API Team

Response Links


Mark Brady

unread,
May 11, 2015, 5:39:47 PM5/11/15
to google-doubleclick...@googlegroups.com
Thanks Sasidhar

Would you have an example of using DeactivateLineItemCreativeAssociations action in the python library? I'm not familiar with java.
Much thanks. I am basically looking at what to send it. A dictionary with lineItemId and creativeID in it?

Sasidhar (DFP API Team)

unread,
May 11, 2015, 5:57:13 PM5/11/15
to google-doubleclick...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages