Ejemplo n.º 1
0
 public function createAdAccounts(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('access_type' => 'access_type_enum', 'adaccount_id' => 'string', 'permitted_roles' => 'list<permitted_roles_enum>');
     $enums = array('access_type_enum' => AdAccountAccessTypeValues::getInstance()->getValues(), 'permitted_roles_enum' => AdAccountPermittedRolesValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/adaccounts', new AdAccount(), 'EDGE', AdAccount::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
Ejemplo n.º 2
0
 protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['AccessType'] = AdAccountAccessTypeValues::getInstance()->getValues();
     $ref_enums['PermittedRoles'] = AdAccountPermittedRolesValues::getInstance()->getValues();
     return $ref_enums;
 }