RequiredSizeError.NOT_ALLOWED @ [0].sizes; trigger:'1x1'

81 views
Skip to first unread message

Phong Hoang Quoc

unread,
Aug 24, 2023, 3:04:16 AM8/24/23
to Google Ad Manager API Forum
Hi,
I'm getting the following error when I'm trying to create a line item creative association

Screen Shot 2023-08-24 at 13.48.23.png

The line item I'm creating the creative association for has the specified size 1x1 in the creativePlaceholder sizes. The lica sizes match the creativePlaceholders, the only potential cause I guess is the creativeSizeType is NATIVE.
Here is my lica:

{

'lineItemId': 6365291439,

'creativeId': 138443741940,

'creativeSetId': None,

'manualCreativeRotationWeight': None,

'sequentialCreativeRotationIndex': None,

'startDateTime': None,

'startDateTimeType': 'USE_START_DATE_TIME',

'endDateTime': None,

'destinationUrl': None,

'sizes': [

{

'width': 1,

'height': 1,

'isAspectRatio': False

},

{

'width': 200,

'height': 200,

'isAspectRatio': False

},

{

'width': 300,

'height': 250,

'isAspectRatio': False

},

{

'width': 320,

'height': 180,

'isAspectRatio': False

},

{

'width': 250,

'height': 250,

'isAspectRatio': False

},

{

'width': 336,

'height': 280,

'isAspectRatio': False

}

],

'status': 'ACTIVE',

'stats': None,

'lastModifiedDateTime': {

'date': {

'year': 2023,

'month': 8,

'day': 23

},

'hour': 21,

'minute': 50,

'second': 47,

'timeZoneId': 'PST8PDT'

},

'targetingName': None

}

and here is the line item:

{

'orderId': 3240914112,

'id': 6365291439,

'name': '1539775_mouda_SP banner position footer_test API',

'externalId': None,

'orderName': 'Ordertest_1',

'startDateTime': {

'date': {

'year': 2023,

'month': 8,

'day': 24

},

'hour': 13,

'minute': 10,

'second': 0,

'timeZoneId': 'America/Los_Angeles'

},

'startDateTimeType': 'USE_START_DATE_TIME',

'endDateTime': None,

'autoExtensionDays': 0,

'unlimitedEndDateTime': True,

'creativeRotationType': 'EVEN',

'deliveryRateType': 'EVENLY',

'deliveryForecastSource': 'HISTORICAL',

'roadblockingType': 'ONE_OR_MORE',

'skippableAdType': 'DISABLED',

'frequencyCaps': [],

'lineItemType': 'AD_EXCHANGE',

'priority': 12,

'costPerUnit': {

'currencyCode': 'JPY',

'microAmount': 0

},

'valueCostPerUnit': {

'currencyCode': 'JPY',

'microAmount': 0

},

'costType': 'CPM',

'discountType': 'PERCENTAGE',

'discount': 0.0,

'contractedUnitsBought': 0,

'creativePlaceholders': [

{

'size': {

'width': 1,

'height': 1,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'NATIVE',

'targetingName': None,

'isAmpOnly': False

},

{

'size': {

'width': 200,

'height': 200,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'PIXEL',

'targetingName': None,

'isAmpOnly': False

},

{

'size': {

'width': 336,

'height': 280,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'PIXEL',

'targetingName': None,

'isAmpOnly': False

},

{

'size': {

'width': 320,

'height': 180,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'PIXEL',

'targetingName': None,

'isAmpOnly': False

},

{

'size': {

'width': 300,

'height': 250,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'PIXEL',

'targetingName': None,

'isAmpOnly': False

},

{

'size': {

'width': 250,

'height': 250,

'isAspectRatio': False

},

'creativeTemplateId': None,

'companions': [],

'appliedLabels': [],

'effectiveAppliedLabels': [],

'expectedCreativeCount': 1,

'creativeSizeType': 'PIXEL',

'targetingName': None,

'isAmpOnly': False

},
],

'activityAssociations': [],

'environmentType': 'BROWSER',

'allowedFormats': [],

'companionDeliveryOption': 'UNKNOWN',

'allowOverbook': False,

'skipInventoryCheck': False,

'skipCrossSellingRuleWarningChecks': False,

'reserveAtCreation': False,

'stats': None,

'deliveryIndicator': None,

'deliveryData': None,

'budget': {

'currencyCode': 'JPY',

'microAmount': 0

},

'status': 'DRAFT',

'reservationStatus': 'UNRESERVED',

'isArchived': False,

'webPropertyCode': 'ca-pub-6710011786170861',

'appliedLabels': [],

'effectiveAppliedLabels': [],

'disableSameAdvertiserCompetitiveExclusion': False,

'lastModifiedByApp': 'Operatio',

'notes': None,

'lastModifiedDateTime': {

'date': {

'year': 2023,

'month': 8,

'day': 24

},

'hour': 21,

'minute': 50,

'second': 57,

'timeZoneId': 'PST8PDT'

},

'creationDateTime': {

'date': {

'year': 2023,

'month': 8,

'day': 23

},

'hour': 13,

'minute': 10,

'second': 18,

'timeZoneId': 'Asia/Tokyo'

},

'isPrioritizedPreferredDealsEnabled': False,

'adExchangeAuctionOpeningPriority': 0,

'customFieldValues': [],

'isSetTopBoxEnabled': False,

'isMissingCreatives': False,

'setTopBoxDisplayInfo': None,

'programmaticCreativeSource': None,

'videoMaxDuration': 0,

'primaryGoal': {

'goalType': 'NONE',

'unitType': 'IMPRESSIONS',

'units': -1

},

'secondaryGoals': [],

'grpSettings': None,

'dealInfo': None,

'viewabilityProviderCompanyId': None,

'userConsentEligibility': 'NONE',

'childContentEligibility': 'DISALLOWED',

'customVastExtension': None,

'targeting': {

'geoTargeting': None,

'inventoryTargeting': {

'targetedAdUnits': [

{

'adUnitId': '22981268162',

'includeDescendants': True

}

],

'excludedAdUnits': [],

'targetedPlacementIds': []

},

'dayPartTargeting': None,

'dateTimeRangeTargeting': None,

'technologyTargeting': None,

'customTargeting': None,

'userDomainTargeting': None,

'contentTargeting': None,

'videoPositionTargeting': None,

'mobileApplicationTargeting': None,

'buyerUserListTargeting': None,

'requestPlatformTargeting': {
'targetedRequestPlatforms': [
'BROWSER'
]
}

},

'creativeTargetings': []

}

Any ideas how I can resolve this?
Thanks

Ad Manager API Forum Advisor

unread,
Aug 24, 2023, 7:19:33 AM8/24/23
to pho...@geniee.co.jp, google-doubleclick...@googlegroups.com
Hello,

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:_00D1U1174p._5004Q2o7rsL:ref"

Thanks,
 
Google Logo Ad Manager API Team


Reply all
Reply to author
Forward
0 new messages