remove creative targeting after it was being set

202 views
Skip to first unread message

Glen Kurniawan

unread,
Jul 18, 2022, 1:03:06 AM7/18/22
to Google Ad Manager API Forum
Hello,

Just wondering, what is the best way to remove creative targeting after it was being set before..

Example: 
I set line item A so that it has 2 creative targetings (one for each creative on line item A) i.e. creativeTargetings: [{name: 'a1' targetings:[...]}, {name: 'a2', targetings:[...]}]
Now I changed my mind and would like to remove the creativeTargetings 'a1' on line item A, but leave creative targeting 'a2' as it is..

what is the best way to do the above?
remove the whole object? remove the targetings but leave the name as it is?

if it is only 1 creative targeting in that line item, should I remove it, and make it an empty array?

Any help would be much appreciated..

Thanks,

Glen

Ad Manager API Forum Advisor

unread,
Jul 18, 2022, 7:25:11 AM7/18/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

Thank you for contacting Ad Manager API support team, this is Madhushree.

I have checked and I can confirm that if the 'A' line item has 'a1' and 'a2' creative targeting, removing 'a1' will not impact the remaining 'a2' creative targeting. Removing the whole object or removing only targeting totally depends on your requirement, you may remove the whole creative targeting object if it is no longer required for you.

Regarding your query about "if it is only 1 creative targeting in that line item, should I remove it, and make it an empty array?", if you don't want to target a creative you can remove targeting, anyway line item targeting will apply on serving ads.

Let us know if you have any further queries.

Regards,
Google Logo
Madhushree
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2cX1kK:ref

Glen Kurniawan

unread,
Jul 18, 2022, 7:23:15 PM7/18/22
to Google Ad Manager API Forum
Hi,

Thanks for your answer.. just a quick follow up question:
1. regarding 'a1' and 'a2' (and I want to remove creative targeting for 'a1' only), do I need to remove the targeting name 'a1' in both CreativePlaceholder.targetingName and LineItemAssociation.targetingName?
2. regarding if there is only one creativeTargeting in the line item and I want to remove it,  can I just confirm that making the LineItem.CreativeTargetings empty array [] will work? and do I need to do the removing of targetingName for CreativePlaceholder and LineItemAssociation as well?

Thank you,

Glen

Ad Manager API Forum Advisor

unread,
Jul 19, 2022, 4:05:25 AM7/19/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

Thank you for getting back to us.

Regarding your queries please find answers below

1. Yes, you need to remove the 'a1' creative targeting in both CreativePlaceholder.targetingName and LineItemAssociation.targetingName.
2. To avoid causing any error, Instead of providing only an empty array[], I would suggest you remove the targeting name from Creative Placeholder and LineItemAssociation.
Message has been deleted

Ad Manager API Forum Advisor

unread,
Jul 19, 2022, 7:07:17 AM7/19/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,
 
Thank you for getting back to us.

I have checked and I could see that the error "INVALID_CREATIVE_TARGETING_NAME" is due to one or more of the targeting names specified by a creative placeholder or line item creative association were not found on the line item, I would suggest you to check the provided targeting name is available in the line item once and try again. If you still face any issues provide us with network code and complete SOAP request and response logs(must be enabled) for further investigation.
Message has been deleted

Ad Manager API Forum Advisor

unread,
Jul 19, 2022, 1:49:11 PM7/19/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

Thanks for getting back to us. I am Chekurthi, Madhushree's colleague and will be assisting you.

As, your message consists of PII sensitive information(Network Code), we are removing it from the forum. I would suggest you send it to support email (admanagerapi-support@google.com) if your response contains any sensitive information.

Upon checking from my end, from the SOAP logs shared where you have partially removed the creativeTargeting (554C9_targeting) where "size" and "creativeSizeType" are still mentioned so that, SOAP request body was triggering at 554C9_targeting. As, Ad Manager API doesn't support the partial updates in LineItem creativeTargeting. 

From the network code shared we can confirm that AB21B_targeting is in Active status such that, you can use it for your creativeTargeting in LineItemService. If you still face any issue regarding this, kindly share the SOAP request and response so that we can investigate further.

Hope this helps.

Regards,
Google Logo
Chekurthi
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2cX1kK:ref

Glen Kurniawan

unread,
Jul 19, 2022, 7:02:47 PM7/19/22
to Google Ad Manager API Forum
Hi,

I have sent an email to admanagera...@google.com as I still do not get what the correct request body to remove the 554C9_targeting.. 
Based on your response, it seems like I should remove the creativePlaceholder that uses 554C9_targeting altogether, is that correct?

Regards,

Glen


On Wednesday, July 20, 2022 at 3:49:11 AM UTC+10 admanagerapi wrote:
Hi Glen,

Thanks for getting back to us. I am Chekurthi, Madhushree's colleague and will be assisting you.

As, your message consists of PII sensitive information(Network Code), we are removing it from the forum. I would suggest you send it to support email (admanagera...@google.com) if your response contains any sensitive information.

Ad Manager API Forum Advisor

unread,
Jul 20, 2022, 3:46:25 AM7/20/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

Thanks for getting back to us.

I have raised your issue with the rest of our team and please note one of our colleagues will reach out to you once we have an update.

Regards,
Google Logo
Madhushree
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2cX1kK:ref

Ad Manager API Forum Advisor

unread,
Jul 20, 2022, 10:54:45 AM7/20/22
to google-doubleclick...@googlegroups.com, glen.ku...@adslot.com
Hi Glen,

I was able to reproduce this and have opened an issue with the trafficking engineering team to investigate. As a workaround, I was able to remove the creative targeting by only removing the creative placeholder and leaving LineItem.creativeTargetings unchanged in the update request.

Thanks,

Google Logo
Chris Seeley
Ad Manager API Team
 
 

ref:_00D1U1174p._5004Q2cX1kK:ref

Glen Kurniawan

unread,
Jul 20, 2022, 9:40:10 PM7/20/22
to Google Ad Manager API Forum
Hi,

Thanks for that, but I do not think removing the creativePlaceholder is ideal.. I would think it might cause an issue because now the line item might think it will only need to serve one size of the creative.. I guess I can try to remove then re-add it.. 

But I think I would prefer if it can be done in one request call.. Therefore, let me know if the engineering team can help me or can fix it if it needs to be fixed..


Thanks,

Glen

Ad Manager API Forum Advisor

unread,
Jul 22, 2022, 10:04:32 AM7/22/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

The creative targeting is represented as a creative placeholder with a creative targeting name. Removing the CreativePlaceholder object with the targeting name will only remove that creative targeting.

Glen Kurniawan

unread,
Jul 24, 2022, 7:43:30 PM7/24/22
to Google Ad Manager API Forum
Hi,

Based on what is written in the API docs:
CreativePlaceholder describes a slot that a creative is expected to fill. This is used primarily to help in forecasting, and also to validate that the correct creatives are associated with the line item. A CreativePlaceholder must contain a size, and it can optionally contain companions

Therefore, if I have 2 creative sizes (ex: one is 728x90 and one is 300x250) for 1 line item, doesn't that mean I need to have 2 creative placeholders? 
In my case I have 2 creative placeholders and each have different targetingName.. so, can I confirm that if I remove one of them, (ex: remove 728x90 creative placeholder because I am trying to remove the creative targeting on 728x90 creative), then the line item will still work on 2 creative sizes (and the outcome would be one creative with targeting and one without)?

As I mentioned, I think it would be better if there are 2 creative placeholders, but one with targeting name and one without (instead of having only 1 creative placeholder).. 
Having 1 creative placeholders for a line item that has 2 creative sizes can lead to confusion..


Regards,

Glen

Ad Manager API Forum Advisor

unread,
Nov 4, 2022, 10:10:14 PM11/4/22
to glen.ku...@adslot.com, google-doubleclick...@googlegroups.com
Hi Glen,

I'm following up here because the underlying issue has been fixed and the workaround is no longer needed. You can now remove a creative targeting by removing it from the creativeTargeting array and setting the CreativePlaceholder.targetingName field to null on the corresponding CreativePlaceholder. 
Reply all
Reply to author
Forward
0 new messages