allowedFormats = $allowedFormats; } /** * @return string[] */ public function getAllowedFormats() { return $this->allowedFormats; } /** * For video creatives specifies the sizes of companion ads (if present). * Companion sizes may be filled in only when creative_size_type = VIDEO * * @param Size[] $companionSizes */ public function setCompanionSizes($companionSizes) { $this->companionSizes = $companionSizes; } /** * @return Size[] */ public function getCompanionSizes() { return $this->companionSizes; } /** * The creative size type. * * Accepted values: CREATIVE_SIZE_TYPE_UNSPECIFIED, REGULAR, INTERSTITIAL, * VIDEO, NATIVE * * @param self::CREATIVE_SIZE_TYPE_* $creativeSizeType */ public function setCreativeSizeType($creativeSizeType) { $this->creativeSizeType = $creativeSizeType; } /** * @return self::CREATIVE_SIZE_TYPE_* */ public function getCreativeSizeType() { return $this->creativeSizeType; } /** * Output only. The native template for this creative. It will have a value * only if creative_size_type = CreativeSizeType.NATIVE. * * Accepted values: UNKNOWN_NATIVE_TEMPLATE, NATIVE_CONTENT_AD, * NATIVE_APP_INSTALL_AD, NATIVE_VIDEO_CONTENT_AD, NATIVE_VIDEO_APP_INSTALL_AD * * @param self::NATIVE_TEMPLATE_* $nativeTemplate */ public function setNativeTemplate($nativeTemplate) { $this->nativeTemplate = $nativeTemplate; } /** * @return self::NATIVE_TEMPLATE_* */ public function getNativeTemplate() { return $this->nativeTemplate; } /** * For regular or video creative size type, specifies the size of the creative * * @param Size $size */ public function setSize(Size $size) { $this->size = $size; } /** * @return Size */ public function getSize() { return $this->size; } /** * The type of skippable ad for this creative. It will have a value only if * creative_size_type = CreativeSizeType.VIDEO. * * Accepted values: SKIPPABLE_AD_TYPE_UNSPECIFIED, GENERIC, INSTREAM_SELECT, * NOT_SKIPPABLE * * @param self::SKIPPABLE_AD_TYPE_* $skippableAdType */ public function setSkippableAdType($skippableAdType) { $this->skippableAdType = $skippableAdType; } /** * @return self::SKIPPABLE_AD_TYPE_* */ public function getSkippableAdType() { return $this->skippableAdType; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreativeSize::class, 'Google_Service_AdExchangeBuyerII_CreativeSize');