How to Change sizes on all Creatives/Line Items

183 views
Skip to first unread message

Joshua Sadler

unread,
Dec 28, 2015, 12:22:10 PM12/28/15
to Google's DoubleClick for Publishers API Forum
Hi,

I'm new to this API and cannot find any straight forward guides on it. I've searched through this group and google in hope of finding something that helps but I can't see anything in relation to what I want to do.

The core objective is to:
- Loop through all creatives and change sizes to [[a, b], [c,d]]
- Loop through all line items and change sizes to [[a, b], [c, d]]
- etc.. same as above for all objects that need the supported sizes

The language I'm looking to achieve this in is PHP. I do see the guide on setting the API up and authenticating, but nothing more (?)

If you do not wish to help as far as any code example, please point me to somewhere that has the API fully documented so I can divulge myself into how it works and how I can get this done fastest method possible.

Thank you a lot in advance, this issue is racking our heads and we cannot find any platforms that let us bulk edit these things...

Thanks!

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Dec 28, 2015, 3:31:37 PM12/28/15
to Google's DoubleClick for Publishers API Forum
Hi,

It looks like you want to update the creative/creativePlaceholder size. You might want to use the updateCreatives method from the Creative service to update the creative sizes and the updateLineItems method to update the CreativePlaceholders size. Here are the corresponding PHP sample codes from our client library that might help:


Thanks,
Tesfamichael Hailegeorgis, DFP API Team
Reply all
Reply to author
Forward
0 new messages