You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-doubleclick...@googlegroups.com
I created an AdUnit with a default size of 500x350.
I then added a ImageCreative with the size of 530 x 290.
All this works fine. The problem comes when I try to create the LineItemCreativeAssociation. I am getting the error: [RequiredSizeError.NOT_ALLOWED @ sizes; trigger:'530x290']
Since my creative size doesn't match the AdUnit size, I am setting the LineItemCreativeAssociation.Sizes property per the DFP documentation:
"Overrides the value set for Creative.size, which allows the creative
to be served to ad units that would otherwise not be compatible for its
actual size. This value is optional."
What do I need to do to get it to accept the new size?
Here is the code: ======================================= var lica = new LineItemCreativeAssociation { creativeId = (long) banner.Banner.DfpBannerId, lineItemId = (long) banner.AdOrderItem.DfpOrderItemId, manualCreativeRotationWeight = banner.Weight, status = banner.Active ? LineItemCreativeAssociationStatus.ACTIVE : LineItemCreativeAssociationStatus.INACTIVE };
var size = new Size { width = (int)banner.Banner.Width, height = (int)banner.Banner.Height, isAspectRatio = false }; lica.sizes = new Size[] { size };
host=www.google.com,url=/apis/ads/publisher/v201010/LineItemCreativeAssociationService,method=createLineItemCreativeAssociation,requestId=7208279ffcf3f34e3d6072370bff905a,responseTime=490 [RequiredSizeError.NOT_ALLOWED @ sizes; trigger:'470x353'] -----------------BEGIN API CALL---------------------
DFP API Advisor
unread,
Jan 25, 2011, 6:24:24 PM1/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google's DoubleClick for Publishers API Forum
hi,
The lineItem only has sizes 500x350. The override needs to match one
of the sizes that the line item can support. Overriding the LICA size
is only important to fit a creative into another valid size of the
line item.
Thanks,
Adam Rogal, DFP API Team
On Jan 25, 6:03 pm, Dan LaRiviere <theriver...@gmail.com> wrote:
> This is a DFP for Small Business account.
>
> Here is the XML - auth token.
>
> -----------------BEGIN API CALL---------------------
>
> Request
> -------
>
> POST /apis/ads/publisher/v201010/LineItemCreativeAssociationService
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
> Protocol 2.0.50727.4952)
> Content-Type: text/xml; charset=utf-8
> SOAPAction: ""
> Host:www.google.com > Content-Length: 1182
> TimeStamp: Tue, 25 Jan 2011 15:59:22 GMT
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequestHeader