protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['ApplinkTreatment'] = AdCreativeApplinkTreatmentValues::getInstance()->getValues(); $ref_enums['CallToActionType'] = AdCreativeCallToActionTypeValues::getInstance()->getValues(); $ref_enums['ObjectType'] = AdCreativeObjectTypeValues::getInstance()->getValues(); $ref_enums['RunStatus'] = AdCreativeRunStatusValues::getInstance()->getValues(); $ref_enums['DynamicAdVoice'] = AdCreativeDynamicAdVoiceValues::getInstance()->getValues(); $ref_enums['Operator'] = AdCreativeOperatorValues::getInstance()->getValues(); return $ref_enums; }
public function getAdCreativesByLabels(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('ad_label_ids' => 'list<string>', 'operator' => 'operator_enum'); $enums = array('operator_enum' => AdCreativeOperatorValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/adcreativesbylabels', new AdCreative(), 'EDGE', AdCreative::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }