[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Ads Ad Manager V1 Client - Class AdUnitSize (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/googleads/ad-manager/latest/V1.AdUnitSize)\n- [0.1.0](/php/docs/reference/googleads/ad-manager/0.1.0/V1.AdUnitSize) \nReference documentation and code samples for the Google Ads Ad Manager V1 Client class AdUnitSize.\n\nRepresents the size, environment, and companions of an ad in an ad unit.\n\nGenerated from protobuf message `google.ads.admanager.v1.AdUnitSize`\n\nNamespace\n---------\n\nGoogle \\\\ Ads \\\\ AdManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSize\n\nRequired. The Size of the AdUnit.\n\n### hasSize\n\n### clearSize\n\n### setSize\n\nRequired. The Size of the AdUnit.\n\n### getEnvironmentType\n\nRequired. The EnvironmentType of the AdUnit\n\n### setEnvironmentType\n\nRequired. The EnvironmentType of the AdUnit\n\n### getCompanions\n\nThe companions for this ad unit size. Companions are only valid if the\nenvironment is\n[VIDEO_PLAYER](/php/docs/reference/googleads/ad-manager/latest/V1.EnvironmentTypeEnum.EnvironmentType).\n\n### setCompanions\n\nThe companions for this ad unit size. Companions are only valid if the\nenvironment is\n[VIDEO_PLAYER](/php/docs/reference/googleads/ad-manager/latest/V1.EnvironmentTypeEnum.EnvironmentType)."]]