Change ad unit name

276 views
Skip to first unread message

Parminder

unread,
Feb 12, 2014, 2:53:25 PM2/12/14
to google-doubleclick...@googlegroups.com
Hello

As per the documentation, starting DFP api version v201311 we can change the name of an ad unit after creation - https://developers.google.com/doubleclick-publishers/docs/reference/v201311/InventoryService.AdUnit#name

I wanted to confirm if we also have to change the adunit name in the ad call , after the ad unit name is updated? 
Are there any other aspects that we should take care of if we change an ad unit's name?

Thanks
Parminder

Chris Seeley (DFP API Team)

unread,
Feb 14, 2014, 2:16:51 PM2/14/14
to
Hi Parminder,

I'm not sure what you mean about changing the name in the "ad call". Can you elaborate a little? In general, you shouldn't need to update anything unless your code depends on ad unit name. Are you experiencing any issues updating the AdUnit name?

Thanks,
Chris Seeley, DFP API Team

Parminder

unread,
Feb 14, 2014, 7:31:02 PM2/14/14
to google-doubleclick...@googlegroups.com
Hello Chris

Sorry about the confusion.
We recently upgraded to the DFP api version 201311 and my question is related to the ability to change the ad unit's name, starting from v201311. As per the documentation, 

Name: The name of the ad unit. This attribute is required and its maximum length is 255 characters. This attribute must also be case-insensitive unique. Beginning in V201311, this attribute can be updated. In versions before v201311, this attribute is read-only after creation.
AdUnitCode: A string used to uniquely identify the ad unit for the purposes of serving the ad. Beginning in V201311, this attribute is optional and can be set during ad unit creation. Before V201311, this attribute is read-only and assigned by Google. Once an ad unit is created, its adUnitCode cannot be changed.

I understand that we cannot change the AdUnitCode once it is set, starting v201311. However, for ad units that were created pre-201311 version( and having an AdUnitCode assigned by Google), if I update the names for those ad units, will the AdUnitCode be regenerated for them?
Our code snippets use the AdUnitCode to target specific ad units for ad serving.

Thanks for your help.
Parminder

On Friday, February 14, 2014 11:11:55 AM UTC-8, Chris Seeley (DFP API Team) wrote:
Hi Parminder,

I'm not sure what you mean about changing the name in the "ad call". Can you elaborate a little? In general, you shouldn't need to update anything unless your code depends on ad unit name. Are you experiencing any issues updating the AdUnit name?

Thanks,
Chris Seeley, DFP API Team

On Wednesday, February 12, 2014 2:53:25 PM UTC-5, Parminder wrote:

Chris Seeley (DFP API Team)

unread,
Feb 17, 2014, 8:58:39 AM2/17/14
to google-doubleclick...@googlegroups.com
Hi Parminder,

The AdUnitCode doesn't change when you update the ad unit's name. Your code using it should be fine.

Thanks,
Chris Seeley, DFP API Team

Reply all
Reply to author
Forward
0 new messages