I've tried every way but can't add an out-of-page size to the creative

44 views
Skip to first unread message

Đức Nguyễn Quang

unread,
Dec 19, 2023, 3:23:43 AM12/19/23
to Google Ad Manager API Forum

I was able to process the lineitem, but when creating the creative I followed the size instructions as in the following API documentation: https://developers.google.com/ad-manager/api/reference/v202308/CreativeService.Size
The documentation states that the size for out-of-page must be 1x1, I followed this but the code reports an error:
ERROR PROCESS CREATE CREATIVE] Code: 0 - Message: [RequiredSizeError.NOT_ALLOWED @ [0].size; trigger:'1x1-null']

Can you help me with this case?

My processing code:

$customCreative = new CustomCreative();
$size = new Size();
$size->setWidth(1);
$size->setHeight(1);
$size->setIsAspectRatio(false);
$customCreative->setSize($size);

Thankiu so much

Ad Manager API Forum Advisor

unread,
Dec 19, 2023, 8:23:13 AM12/19/23
to quangdu...@gmail.com, google-doubleclick...@googlegroups.com
Hi,

Thank you for reaching out to the Ad Manager API support team.

By reviewing your concern, I understand that you are facing error RequiredSizeError.NOT_ALLOWED, says that LineItemCreativeAssociation.sizes must be a subset of LineItem.creativePlaceholders. Can you please share the following information to investigate further:
  • Network code.
  • Complete SOAP request and response logs (SOAP logging must be enabled).
  • The user email used for authenticating the API query. 

You can send them via Reply privately to the author option, or a direct private reply to this email. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r2aOU:ref"


Thanks,
 
Google Logo Ad Manager API Team


Reply all
Reply to author
Forward
0 new messages